mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 13:42:38 +02:00
Remove script from engine
This commit is contained in:
parent
5e32298183
commit
02625a6e28
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ var scriptData = ScriptDiscoveryService.getRunning();
|
|||
var scripts = scriptData.filter(function (datum) { return datum.name === 'debugWindow.js'; });
|
||||
if (scripts.length >= 2) {
|
||||
//2nd instance of the script is too much
|
||||
ScriptDiscoveryService.stopScript(scripts[1].url);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue