We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 814761b commit 6b320fdCopy full SHA for 6b320fd
extension/src/options/syncOptions.ts
@@ -75,7 +75,7 @@ const migrateOldOptions = (oldOptions: OldOrNewOptions): Options => ({
75
export const getOptions = (callback: (options: Options) => void) => {
76
if (options) callback(options);
77
else {
78
- chrome.storage.sync.get(
+ chrome.storage.sync.get<OldOrNewOptions>(
79
{
80
useEditor: 0,
81
editor: '',
@@ -92,7 +92,7 @@ export const getOptions = (callback: (options: Options) => void) => {
92
showContextMenus: true,
93
},
94
function (items) {
95
- options = migrateOldOptions(items as OldOrNewOptions);
+ options = migrateOldOptions(items);
96
callback(options);
97
98
);
0 commit comments