prefix localstorage key as per the convention

This commit is contained in:
Matthew Hodgson 2017-04-22 02:17:22 +01:00 committed by GitHub
parent e877ad2e63
commit 38fa9f78f1

View File

@ -263,7 +263,7 @@ async function loadApp() {
configError = e;
}
if (window.localStorage && window.localStorage.getItem('accepts_unsupported_browser')) {
if (window.localStorage && window.localStorage.getItem('mx_accepts_unsupported_browser')) {
console.log('User has previously accepted risks in using an unsupported browser');
validBrowser = true;
}
@ -299,7 +299,7 @@ async function loadApp() {
var CompatibilityPage = sdk.getComponent("structures.CompatibilityPage");
window.matrixChat = ReactDOM.render(
<CompatibilityPage onAccept={function() {
if (window.localStorage) window.localStorage.setItem('accepts_unsupported_browser', true);
if (window.localStorage) window.localStorage.setItem('mx_accepts_unsupported_browser', true);
validBrowser = true;
console.log("User accepts the compatibility risks.");
loadApp();