We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd82507 + 00fd126 commit d5a75bcCopy full SHA for d5a75bc
1 file changed
resources/js/sql.ts
@@ -48,10 +48,15 @@ function urlEncode (str) {
48
function autoSave (query): void {
49
if (query) {
50
var key = Sql.getAutoSavedKey();
51
- if (isStorageSupported('localStorage')) {
52
- window.localStorage.setItem(key, query);
53
- } else {
54
- window.Cookies.set(key, query, { path: CommonParams.get('rootPath') });
+ try {
+ if (isStorageSupported('localStorage')) {
+ window.localStorage.setItem(key, query);
+ } else {
55
+ window.Cookies.set(key, query, { path: CommonParams.get('rootPath') });
56
+ }
57
+ } catch (e) {
58
+ console.error(e);
59
+ ajaxShowMessage(e.message, false, 'error');
60
}
61
62
checkSavedQuery();
0 commit comments