• Sean Hammond's avatar
    Move isBrowserExtension() into its own file · 42df09b5
    Sean Hammond authored
    Cut-paste the `isBrowserExtension()` function and its unit tests out of
    `settings.js` and into its own `is-browser-extension.js` file.
    
    This is because in a future refactoring `index.js` isn't going to call
    `isBrowserExtension()` anymore, only `settings.js` will call it, which
    would make `isBrowserExtension()` a private helper function of
    `settings.js`, but I don't want to lose `isBrowserExtension()`'s unit
    tests so I'm moving it into its own file from where `settings.js` (in
    the future, `index.js` currently) can import and use it. This way
    `isBrowserExtension()` remains part of the public API of its containing
    module and can have unit tests.
    42df09b5
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
yarn.lock Loading commit data...