/ ‘grepolis.user.js’
This commit is contained in:
parent
3cd1e639d3
commit
4ab07e8859
@ -10,7 +10,7 @@
|
||||
//
|
||||
// @match http://*.grepolis.com/game/*
|
||||
//
|
||||
// @version 1.0.32
|
||||
// @version 1.0.33
|
||||
// @updateURL http://git.javil.eu/jan/userscripts/raw/master/grepolis.user.js
|
||||
// ==/UserScript==
|
||||
|
||||
@ -65,13 +65,15 @@
|
||||
|
||||
var wnd = GPWindowMgr.getWindowById(windowId);
|
||||
if(wnd == undefined){
|
||||
windows[xFarmId] = undefined;
|
||||
console.log("Window not open any more");
|
||||
setTimeout(getWaresTick(xFarmId), 50);
|
||||
return;
|
||||
}
|
||||
|
||||
var wndElement = wnd.getElement();
|
||||
if(windowId == undefined){
|
||||
if(wndElement == undefined){
|
||||
windows[xFarmId] = undefined;
|
||||
console.log("Window not reachable any more");
|
||||
try {
|
||||
wnd.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user