-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: 5ebffaf1c486df25e9a1a9c3c7a250d71c61941b: path_to: revision_to:
commit 5ebffaf1c486df25e9a1a9c3c7a250d71c61941b Author: James Baicoianu <james_github@baicoianu.com> Date: Fri Apr 22 14:25:23 2022 -0700 Graceful fallback for localStorage permissions problems diff --git a/scripts/janusweb.js b/scripts/janusweb.js
--- a/scripts/janusweb.js +++ b/scripts/janusweb.js @@ -74,7 +74,11 @@ elation.require([ }); elation.events.add(window, 'popstate', elation.bind(this, this.handlePopstate)); - this.bookmarks = elation.collection.localindexed({index: 'url', storagekey: 'janusweb.bookmarks'}); + try { + this.bookmarks = elation.collection.localindexed({index: 'url', storagekey: 'janusweb.bookmarks'}); + } catch (e) { + this.bookmarks = elation.collection.indexed({index: 'url', storagekey: 'janusweb.bookmarks'}); + } if (this.corsproxy != '') { elation.engine.assets.setCORSProxy(this.corsproxy);
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 18:19:30 2024