mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
disable image background
This commit is contained in:
+4
-4
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
} */
|
||||
}
|
||||
Reference in New Issue
Block a user