1
0
forked from GitHub/gf-core

gfse: only try to upload/compile grammars when browser is online

Show error message "Offline" if browser is offline.
This commit is contained in:
hallgren
2013-08-19 15:00:55 +00:00
parent 029f1d40e5
commit 2aa14bfef8

View File

@@ -71,7 +71,8 @@ function upload_grammars(gs,cont) {
else alert(res.errorcode+"\n"+res.command+"\n\n"+res.output);
}
with_dir(upload2)
if(navigator.onLine) with_dir(upload2)
else cont({errorcode:"Offline",command:"",output:""})
}
function assign_unique_name(g,unique_id) {