mirror of
https://github.com/AleziaKurdis/Overte-community-apps.git
synced 2025-04-07 16:12:07 +02:00
Add files via upload
This commit is contained in:
parent
eb99be380a
commit
b95d9f84ba
1 changed files with 4 additions and 13 deletions
|
@ -56,15 +56,14 @@
|
|||
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
|
||||
}
|
||||
|
||||
var currentlyRunningScripts = {};
|
||||
|
||||
|
||||
EventBridge.scriptEventReceived.connect(function(message){
|
||||
currentlyRunningScripts = JSON.parse(message);
|
||||
|
||||
|
||||
//update the buttons
|
||||
buttonList.forEach(function(item){
|
||||
var btn = "";
|
||||
if(CheckRunning(item.url) != false){
|
||||
if(message.indexOf(item.url) != -1){
|
||||
//Means already running
|
||||
btn = "<button class='uninstall' onclick='uninstall(" + item.url + ", " + item.id + ");'>Uninstall</button>";
|
||||
}else{
|
||||
|
@ -107,15 +106,7 @@
|
|||
|
||||
}
|
||||
|
||||
function CheckRunning(scriptUrl){
|
||||
alert("checkrunning!");
|
||||
if(currentlyRunningScripts.some(currentlyRunningScripts => currentlyRunningScripts.path === scriptUrl)){
|
||||
return true;
|
||||
} else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<style>
|
||||
|
|
Loading…
Reference in a new issue