mirror of
https://github.com/overte-org/overte.git
synced 2025-06-20 09:00:37 +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'; });
|
var scripts = scriptData.filter(function (datum) { return datum.name === 'debugWindow.js'; });
|
||||||
if (scripts.length >= 2) {
|
if (scripts.length >= 2) {
|
||||||
//2nd instance of the script is too much
|
//2nd instance of the script is too much
|
||||||
|
ScriptDiscoveryService.stopScript(scripts[1].url);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue