From 1d71c05201b995dc2caa006b2449eb164101fb39 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 8 Mar 2019 09:55:50 -0700 Subject: [PATCH] Localstorage -> LocalStorage --- src/Lifecycle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Lifecycle.js b/src/Lifecycle.js index 16b36ce1f0..2926528af8 100644 --- a/src/Lifecycle.js +++ b/src/Lifecycle.js @@ -116,7 +116,7 @@ export async function loadSession(opts) { * @returns {String} The persisted session's owner, if an owner exists. Null otherwise. */ export function getStoredSessionOwner() { - const {hsUrl, userId, accessToken} = _getLocalstorageSessionVars(); + const {hsUrl, userId, accessToken} = _getLocalStorageSessionVars(); return hsUrl && userId && accessToken ? userId : null; } @@ -225,7 +225,7 @@ function _registerAsGuest(hsUrl, isUrl, defaultDeviceDisplayName) { }); } -function _getLocalstorageSessionVars() { +function _getLocalStorageSessionVars() { const hsUrl = localStorage.getItem("mx_hs_url"); const isUrl = localStorage.getItem("mx_is_url") || 'https://matrix.org'; const accessToken = localStorage.getItem("mx_access_token"); @@ -250,7 +250,7 @@ async function _restoreFromLocalStorage() { return false; } - const {hsUrl, isUrl, accessToken, userId, deviceId} = _getLocalstorageSessionVars(); + const {hsUrl, isUrl, accessToken, userId, deviceId} = _getLocalStorageSessionVars(); let isGuest; if (localStorage.getItem("mx_is_guest") !== null) {