Dateien hochladen nach „“

This commit is contained in:
2023-11-01 16:14:22 +01:00
parent 678478f164
commit 2baf5c28c9
4 changed files with 100 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
chrome.action.onClicked.addListener((tab) => {
chrome.scripting.executeScript({
target: { tabId: tab.id },
function: getStatus
});
});
function getStatus() {
// Hier den Code zur Abfrage des Serverstatus einfügen
var serverOnline = true; // Ändern Sie dies entsprechend dem Serverstatus
chrome.action.setBadgeText({
text: serverOnline ? "Online" : "Offline"
});
}