👕
This commit is contained in:
parent
ec10338364
commit
9aac8967aa
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const { remote } = require('electron')
|
const { remote } = require('electron')
|
||||||
const { app } = remote;
|
const { app } = remote
|
||||||
|
|
||||||
const getChromeStoragePath = (storageType, extensionId) => {
|
const getChromeStoragePath = (storageType, extensionId) => {
|
||||||
return path.join(
|
return path.join(
|
||||||
|
@ -34,7 +34,7 @@ const getStorage = (storageType, extensionId) => {
|
||||||
|
|
||||||
const setStorage = (storageType, extensionId, storage) => {
|
const setStorage = (storageType, extensionId, storage) => {
|
||||||
const json = JSON.stringify(storage)
|
const json = JSON.stringify(storage)
|
||||||
const data = writeChromeStorageFile(storageType, extensionId, json)
|
writeChromeStorageFile(storageType, extensionId, json)
|
||||||
}
|
}
|
||||||
|
|
||||||
const scheduleCallback = (items, callback) => {
|
const scheduleCallback = (items, callback) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue