This commit is contained in:
fuwaa 2022-07-21 13:57:09 +08:00
parent 662c79e761
commit 479f34cd4d
No known key found for this signature in database
GPG key ID: 2E4F5DC11DE1D654

View file

@ -3,7 +3,6 @@
/** /**
* Set a key and autoreload * Set a key and autoreload
* @param {string} setting - setting to update * @param {string} setting - setting to update
* @param {string} value - Color to replace the current color with
*/ */
export function pintSet(setting, value) { export function pintSet(setting, value) {
var pintKey = {}; var pintKey = {};
@ -26,7 +25,6 @@ export function pintSetNoReload(setting, value) {
/** /**
* Gets a setting and calls it back (normally used for react useState) * Gets a setting and calls it back (normally used for react useState)
* @param {string} setting - get this setting * @param {string} setting - get this setting
* @param {string} func - Function to Callback
*/ */
export function pintGetUpdate(setting, func) { export function pintGetUpdate(setting, func) {
chrome.storage.local.get([`${setting}`], function (result) { chrome.storage.local.get([`${setting}`], function (result) {