Revert "Improving log messages"

This commit is contained in:
David Négrier
2021-11-24 16:20:07 +01:00
committed by GitHub
parent 6c5f330b71
commit 6e6cdc7bde
38 changed files with 203 additions and 581 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ class LocalUserStore {
setLastRoomUrl(roomUrl: string): void {
localStorage.setItem(lastRoomUrl, roomUrl.toString());
if ("caches" in window) {
if ('caches' in window) {
caches.open(cacheAPIIndex).then((cache) => {
const stringResponse = new Response(JSON.stringify({ roomUrl }));
cache.put(`/${lastRoomUrl}`, stringResponse);
@@ -135,7 +135,7 @@ class LocalUserStore {
);
}
getLastRoomUrlCacheApi(): Promise<string | undefined> {
if (!("caches" in window)) {
if (!('caches' in window)) {
return Promise.resolve(undefined);
}
return caches.open(cacheAPIIndex).then((cache) => {