|
|
@ -28,7 +28,7 @@ module.exports = class ExtensionStore { |
|
|
|
return this._set(state) |
|
|
|
return this._set(state) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function _get() { |
|
|
|
_get() { |
|
|
|
const local = extension.storage.local |
|
|
|
const local = extension.storage.local |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
local.get(null, (result) => { |
|
|
|
local.get(null, (result) => { |
|
|
@ -42,7 +42,7 @@ module.exports = class ExtensionStore { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function _set(obj) { |
|
|
|
_set(obj) { |
|
|
|
const local = extension.storage.local |
|
|
|
const local = extension.storage.local |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
local.set(obj, () => { |
|
|
|
local.set(obj, () => { |
|
|
|