mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 03:09:33 -06:00
gfse: only try to upload/compile grammars when browser is online
Show error message "Offline" if browser is offline.
This commit is contained in:
@@ -71,7 +71,8 @@ function upload_grammars(gs,cont) {
|
|||||||
else alert(res.errorcode+"\n"+res.command+"\n\n"+res.output);
|
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) {
|
function assign_unique_name(g,unique_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user