7c9a3ed7b4
Add Mozilla Code of Conduct |
||
---|---|---|
bin | ||
l10n | ||
logs | ||
src | ||
tests | ||
tests-node | ||
.codeclimate.yml | ||
.eslintrc | ||
.gitignore | ||
.jscsrc | ||
.travis.yml | ||
CODE_OF_CONDUCT.md | ||
LICENSE | ||
README.md | ||
karma.conf.js | ||
package.json | ||
webpack.config.js |
README.md
New tab
This is a remote implementation of the "new tab" page for Firefox. It can be run inside the browser, or on its own with a "platform" shim.
Developer Setup
Web assets
git clone https://github.com/mozilla/remote-newtab.git
cd remote-newtab
npm install && npm start
This will start a dev server and build all necessary files in developer mode
Firefox
First, clone the Firefox code currently in development for this repo in at mozilla/newtab-dev.
git clone https://github.com/mozilla/newtab-dev.git
Edit the file at browser/components/newtab/RemoteNewTabLocation.jsm
to point to http://localhost:1944
:
-const DEFAULT_PAGE_LOCATION = "http://localhost:8000/" +
- "v%VERSION%/%CHANNEL%/%LOCALE%/index.html";
+const DEFAULT_PAGE_LOCATION = "http://localhost:1944";
Finally, build and run with mach
:
./mach build
./mach run