• 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
is-browser-extension-test.js 822 Bytes