Skip to content

Commit

Permalink
move storage assignment from setup to DOMContentLoaded event
Browse files Browse the repository at this point in the history
  • Loading branch information
deleolajide committed Mar 31, 2021
1 parent 6db43e0 commit a817859
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/webapp/custom_ofmeet.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ var ofmeet = (function(of)
{
console.debug("custom_ofmeet.js DOMContentLoaded");

if (storageAvailable('localStorage')) {
storage = window.localStorage;
} else {
storage = new DummyStorage();
}

setTimeout(setup);

if (!config.webinar)
Expand Down Expand Up @@ -300,12 +306,6 @@ var ofmeet = (function(of)

console.debug("custom_ofmeet.js setup");

if (storageAvailable('localStorage')) {
storage = window.localStorage;
} else {
storage = new DummyStorage();
}

if (!config.webinar)
{
listenWebPushEvents();
Expand Down

0 comments on commit a817859

Please sign in to comment.