Skip to content

Commit

Permalink
fix(storage): 修复在 Firefox 上无法保存设置的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Light authored and Light committed Mar 24, 2021
1 parent c10f272 commit 4563065
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

### Firefox

1. [Releases](https://github.com/LightAPIs/free-export-bookmarks/releases/latest)
2. [Mozilla Add-ons](https://addons.mozilla.org/zh-CN/firefox/addon/free-export-bookmarks/)
1. [Mozilla Add-ons](https://addons.mozilla.org/zh-CN/firefox/addon/free-export-bookmarks/)
2. [Releases](https://github.com/LightAPIs/free-export-bookmarks/releases/latest)

## 开发编译

Expand Down
4 changes: 2 additions & 2 deletions src/index/App/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ export default {
return data.title.indexOf(value) !== -1;
},
handleChange() {
const { settings } = this;
const { settings, isChrome } = this;
chrome.storage.local.set(
{
settings,
settings: isChrome ? settings : Object.assign({}, settings),
},
() => {
console.log('The settings have been set.');
Expand Down

0 comments on commit 4563065

Please sign in to comment.