mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-20 06:43:10 -06:00
minibar: more robust test for availability localStorage
Minibar should now work if localStorage is disabled or unavailable. (In Firefox, disabling cookies also disables localStorage.)
This commit is contained in:
1 parent
03db087e38
commit
3b334b5707
1 file changed
+1
-1
@@ -24,7 +24,7 @@ if(/^\?\/tmp\//.test(location.search)) {
|
||||
if(args[0]) online_options.grammars_url=args[0];
|
||||
if(args[1]) minibar_options.initial_grammar=args[1];
|
||||
}
|
||||
else if(window.localStorage) {
|
||||
else if(supports_html5_storage()) {
|
||||
var s=window.localStorage["gf.editor.simple.grammardir"]
|
||||
if(s) var editor_dir=JSON.parse(s);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user