mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 19:54:39 +00:00
disable image background
This commit is contained in:
+4
-4
@@ -97,9 +97,9 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
|||||||
ReloadSEQTAPages();
|
ReloadSEQTAPages();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* case "IndexedDB":
|
case "IndexedDB":
|
||||||
HandleIntexedDB(request, sendResponse);
|
HandleIntexedDB(request, sendResponse);
|
||||||
return true; */
|
return true;
|
||||||
|
|
||||||
case "githubTab":
|
case "githubTab":
|
||||||
chrome.tabs.create({ url: "github.com/SethBurkart123/EvenBetterSEQTA" });
|
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) {
|
switch (request.action) {
|
||||||
case "write":
|
case "write":
|
||||||
writeData(request.data.type, request.data.data);
|
writeData(request.data.type, request.data.data);
|
||||||
@@ -142,7 +142,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
function GetNews(sendResponse) {
|
function GetNews(sendResponse) {
|
||||||
// Gets the current date
|
// Gets the current date
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* global chrome */
|
/* // global chrome */
|
||||||
/* function isValidBase64(str) {
|
/* function isValidBase64(str) {
|
||||||
const len = str.length;
|
const len = str.length;
|
||||||
if (len % 4 !== 0) {
|
if (len % 4 !== 0) {
|
||||||
@@ -28,7 +28,7 @@ function base64ToArrayBuffer(base64) {
|
|||||||
} */
|
} */
|
||||||
|
|
||||||
export async function appendBackgroundToUI() {
|
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) => {
|
chrome.runtime.sendMessage({ type: "IndexedDB", action: "read", fileName: "customBackground" }, (response) => {
|
||||||
if (chrome.runtime.lastError) {
|
if (chrome.runtime.lastError) {
|
||||||
return reject(chrome.runtime.lastError);
|
return reject(chrome.runtime.lastError);
|
||||||
@@ -78,7 +78,5 @@ export async function appendBackgroundToUI() {
|
|||||||
backgroundElement.classList.add("imageBackground");
|
backgroundElement.classList.add("imageBackground");
|
||||||
mount.appendChild(backgroundElement);
|
mount.appendChild(backgroundElement);
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
appendBackgroundToUI();
|
|
||||||
Reference in New Issue
Block a user