From 018420d51121e0981c922832fd61eac7d4b52a7a Mon Sep 17 00:00:00 2001 From: "jan@dwrox.net" Date: Sun, 7 Jan 2018 13:34:22 +0100 Subject: [PATCH] Update for v2.0.0 - Adding setChromeStorage function to cookies.js --- cookies.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cookies.js b/cookies.js index cac4073..9698408 100755 --- a/cookies.js +++ b/cookies.js @@ -18,12 +18,25 @@ function checkChromeHadNoErrors () { } void chrome.runtime.lastError + return false } return true } +function setChromeStorage (data) { + chrome.storage.local.set(data, function () { + if (checkChromeHadNoErrors()) { + if (hasConsole) { + console.log('Browser updated the storage data.') + } + } else if (hasConsole) { + console.log('Browser updating storage error.') + } + }) +} + // Chrome function chromeGetStorageAndClearCookies (action, data, cookies, domainURL, doLoadURLCookies) { if (data === null) {