Skip to content

Commit

Permalink
Catches the rison deserialization exception to allow page loads (#3515)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenRBS committed Apr 14, 2022
1 parent b860fdc commit 4f8def9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion static/main.js
Expand Up @@ -275,7 +275,11 @@ function findConfig(defaultConfig, options) {
if (options.config) {
config = options.config;
} else {
config = url.deserialiseState(window.location.hash.substr(1));
try {
config = url.deserialiseState(window.location.hash.substring(1));
} catch (e) {
// Ignore so we at least load the site, but it would be good to notify the user
}
}

if (config) {
Expand Down

0 comments on commit 4f8def9

Please sign in to comment.