disable image background

This commit is contained in:
SethBurkart123
2023-10-11 12:34:50 +11:00
parent fa6d0908f4
commit be6a4b8d16
2 changed files with 8 additions and 10 deletions
+4 -4
View File
@@ -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();
+3 -5
View File
@@ -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();