From a325c50f1fc205b3bb40aac5055d122d17a0c36a Mon Sep 17 00:00:00 2001 From: cutls Date: Tue, 8 Sep 2020 23:56:35 +0900 Subject: [PATCH] pwa exp --- app/js/tl/parse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index 70468787..79ad6abe 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -1607,7 +1607,7 @@ function mastodonBaseStreaming(acct_id) { notfCommon(acct_id, 0, null, 'only') //fallback console.error("Error closing " + domain) console.error(error) - if (mastodonBaseWsStatus[domain] == 'available') location.reload() + if (mastodonBaseWsStatus[domain] == 'available' && !pwa) location.reload() mastodonBaseWsStatus[domain] = 'cannotuse' setTimeout(function () { mastodonBaseWsStatus[domain] = 'cannotuse' @@ -1618,7 +1618,7 @@ function mastodonBaseStreaming(acct_id) { mastodonBaseWs[domain].onclose = function () { notfCommon(acct_id, 0, null, 'only') //fallback console.warn("Closing " + domain) - if (mastodonBaseWsStatus[domain] == 'available') location.reload() + if (mastodonBaseWsStatus[domain] == 'available' && !pwa) location.reload() mastodonBaseWs[domain] = false mastodonBaseWsStatus[domain] = 'cannotuse' setTimeout(function () {