Skip to content

Commit

Permalink
[update] replace api
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyraft committed Jul 8, 2022
1 parent 0e14f94 commit 9295091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function optionsArrayToStr(array) {
for (const element of array) {
res += element + "\n";
}
return res.substr(0, res.length - 1);
return res.substring(0, res.length - 1);
}

/**
Expand All @@ -41,4 +41,4 @@ export async function getSync(key) {
export async function setSync(obj) {
// noinspection JSUnresolvedVariable
await chrome.storage.sync.set(obj);
}
}

0 comments on commit 9295091

Please sign in to comment.