Skip to content

Commit

Permalink
fix: 容错
Browse files Browse the repository at this point in the history
  • Loading branch information
王美建 committed Nov 8, 2022
1 parent 810aaa0 commit e050a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class AutoClipboard {
text = text.slice(0, this._MAX_ITEM_LENGTH);
}
const STORAGE_KEY = "auto_clipboard_history";
let historyStorage = ((await chrome.storage?.local.get([STORAGE_KEY])) ??
let historyStorage = ((await chrome.storage?.local?.get([STORAGE_KEY])) ??
{})[STORAGE_KEY];
let historysMerge = [];
// 更新
Expand Down

0 comments on commit e050a76

Please sign in to comment.