Minor Improvements

* Made Refresh() more robust - when an error is encountered, the layer(set) is reloaded automatically.
* JS errors are now output to console instead of alerts.
This commit is contained in:
Unknown
2018-04-04 15:14:59 -04:00
parent d52e896ac3
commit 4bf7eca6b0
5 changed files with 42 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
#include lib.js
app.displayDialogs=DialogModes.NO
var stdout = newFile(arguments[0]);
var lyr = eval(arguments[1]);
stdout.write(('{"Name":"' + lyr.name + '","Bounds":[[' + lyr.bounds[0] + ',' +