mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 17:25:50 +03:00
prefix localstorage key as per the convention
This commit is contained in:
parent
e877ad2e63
commit
38fa9f78f1
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue