mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 08:12:51 -06:00
gfse: show an informative error message in browsers that lack support for localStorage
This commit is contained in:
@@ -1440,9 +1440,13 @@ function dir_bugfix() {
|
||||
}
|
||||
|
||||
if(editor) {
|
||||
initial_view();
|
||||
touch_edit();
|
||||
dir_bugfix();
|
||||
if(supports_html5_storage()) {
|
||||
initial_view();
|
||||
touch_edit();
|
||||
dir_bugfix();
|
||||
}
|
||||
else
|
||||
editor.innerHTML="<p>This browser does not appear to support localStorage, and the grammar editor does not work without it. Sorry!"
|
||||
}
|
||||
|
||||
//console.log("hi")
|
||||
|
||||
Reference in New Issue
Block a user