Dateien hochladen nach „“
This commit is contained in:
@@ -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"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user