Skip to content

Commit 7dff35a

Browse files
committed
only set storageLocal if it's defined
1 parent 6a38678 commit 7dff35a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/js/background/storages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ window.open(url.replace(/%s/g,query), \'_blank\');
20132013
}
20142014
if (isVersionInRange(oldVersion, newVersion, '2.1.4')) {
20152015
const isEnabled = await modules.Util.isStylishInstalled();
2016-
modules.storages.storageLocal.useAsUserstylesInstaller = !isEnabled;
2016+
modules.storages.storageLocal && (modules.storages.storageLocal.useAsUserstylesInstaller = !isEnabled);
20172017
browserAPI.storage.local.set({
20182018
useAsUserstylesInstaller: !isEnabled
20192019
});

0 commit comments

Comments
 (0)