Skip to content

Commit

Permalink
fix some code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Aug 9, 2019
1 parent 44361c7 commit 3e6e737
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ global.browser = require('webextension-polyfill');
browser.runtime.onInstalled.addListener(async () => {
let storage = browser.storage.sync;
let data = await storage.get('oTabData');
storage.set({
oTabSettings: {
dark: false,
openInCurrentTab: false
}
})
if (Object.entries(data).length === 0 && data.constructor === Object) {
storage.set({
oTabMenu: '0'
})
storage.set({
oTabSettings: {
dark: false,
openInCurrentTab: false
}
})
storage.set({
oTabData: {
boards: [
Expand Down

0 comments on commit 3e6e737

Please sign in to comment.