mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Show app loader on start
This commit is contained in:
@@ -260,7 +260,7 @@ export {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cohee: Uncomment when we decide to use loader
|
// Cohee: Uncomment when we decide to use loader
|
||||||
// showLoader();
|
showLoader();
|
||||||
|
|
||||||
// Allow target="_blank" in links
|
// Allow target="_blank" in links
|
||||||
DOMPurify.addHook('afterSanitizeAttributes', function (node) {
|
DOMPurify.addHook('afterSanitizeAttributes', function (node) {
|
||||||
@@ -713,6 +713,7 @@ async function firstLoadInit() {
|
|||||||
const tokenData = await tokenResponse.json();
|
const tokenData = await tokenResponse.json();
|
||||||
token = tokenData.token;
|
token = tokenData.token;
|
||||||
} catch {
|
} catch {
|
||||||
|
hideLoader();
|
||||||
toastr.error("Couldn't get CSRF token. Please refresh the page.", "Error", { timeOut: 0, extendedTimeOut: 0, preventDuplicates: true });
|
toastr.error("Couldn't get CSRF token. Please refresh the page.", "Error", { timeOut: 0, extendedTimeOut: 0, preventDuplicates: true });
|
||||||
throw new Error("Initialization failed");
|
throw new Error("Initialization failed");
|
||||||
}
|
}
|
||||||
@@ -734,7 +735,7 @@ async function firstLoadInit() {
|
|||||||
initCfg();
|
initCfg();
|
||||||
doDailyExtensionUpdatesCheck();
|
doDailyExtensionUpdatesCheck();
|
||||||
// Cohee: Uncomment when we decide to use loader
|
// Cohee: Uncomment when we decide to use loader
|
||||||
// hideLoader();
|
hideLoader();
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkOnlineStatus() {
|
function checkOnlineStatus() {
|
||||||
|
Reference in New Issue
Block a user