Skip to content

Commit d3de54f

Browse files
committed
Don't check urls if we didn't get them from chrome storage
Related to #49.
1 parent 9b064dc commit d3de54f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/extension/options/syncOptions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export const getOptionsFromBg = () => {
6060
};
6161

6262
export const isAllowed = (localOptions = options) => (
63-
!localOptions || localOptions.inject || location.href.match(localOptions.urls.split('\n').join('|'))
63+
!localOptions || localOptions.inject || !localOptions.urls
64+
|| location.href.match(localOptions.urls.split('\n').join('|'))
6465
);
6566

6667
export default {

0 commit comments

Comments
 (0)