1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

local-store - fix class syntax

This commit is contained in:
kumavis 2018-03-14 10:59:47 -07:00
parent c4e90c9359
commit 6aef2ed0b2

View File

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