From be6a4b8d16a36462dca209e581edffdb89e348fd Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Wed, 11 Oct 2023 12:34:50 +1100 Subject: [PATCH] disable image background --- src/background.js | 8 ++++---- src/seqta/ui/Background.js | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/background.js b/src/background.js index 8c564c19..8fec1a66 100644 --- a/src/background.js +++ b/src/background.js @@ -97,9 +97,9 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { ReloadSEQTAPages(); break; - /* case "IndexedDB": + case "IndexedDB": HandleIntexedDB(request, sendResponse); - return true; */ + return true; case "githubTab": chrome.tabs.create({ url: "github.com/SethBurkart123/EvenBetterSEQTA" }); @@ -124,7 +124,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { } }); -/* function HandleIntexedDB(request, sendResponse) { +function HandleIntexedDB(request, sendResponse) { switch (request.action) { case "write": writeData(request.data.type, request.data.data); @@ -142,7 +142,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { return true; } } - */ + function GetNews(sendResponse) { // Gets the current date const date = new Date(); diff --git a/src/seqta/ui/Background.js b/src/seqta/ui/Background.js index caf5c586..95e3ac14 100644 --- a/src/seqta/ui/Background.js +++ b/src/seqta/ui/Background.js @@ -1,4 +1,4 @@ -/* global chrome */ +/* // global chrome */ /* function isValidBase64(str) { const len = str.length; if (len % 4 !== 0) { @@ -28,7 +28,7 @@ function base64ToArrayBuffer(base64) { } */ export async function appendBackgroundToUI() { - const response = await new Promise((resolve, reject) => { + /* const response = await new Promise((resolve, reject) => { chrome.runtime.sendMessage({ type: "IndexedDB", action: "read", fileName: "customBackground" }, (response) => { if (chrome.runtime.lastError) { return reject(chrome.runtime.lastError); @@ -78,7 +78,5 @@ export async function appendBackgroundToUI() { backgroundElement.classList.add("imageBackground"); mount.appendChild(backgroundElement); } - } -} - -appendBackgroundToUI(); + } */ +} \ No newline at end of file