From 2ecf257fcdcadd65ea17c0e9f7b3678fb2b39c03 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Fri, 26 May 2017 15:30:01 +0200 Subject: [PATCH] Sync localStorage with sessionStorage in auth because safari... --- www/auth/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/auth/main.js b/www/auth/main.js index 488165911..747434c23 100644 --- a/www/auth/main.js +++ b/www/auth/main.js @@ -18,6 +18,9 @@ define([ /^http(s)?:\/\/localhost\:/ ]; + // Safari is weird about localStorage in iframes but seems to let sessionStorage slide. + localStorage.User_hash = localStorage.User_hash || sessionStorage.User_hash; + Cryptpad.ready(function () { console.log('IFRAME READY'); $(window).on("message", function (jqe) {