From 62676365ec350c36e0737c1da59323bc2dfce779 Mon Sep 17 00:00:00 2001 From: Matthias Leuffen Date: Fri, 13 Oct 2023 14:10:16 +0200 Subject: [PATCH] update --- package.json | 2 +- src/loader/loader.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4b36445..b1a18c3 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leuffen/liscom-loader", - "version": "1.0.4", + "version": "1.0.5", "description": "", "main": "./dist/index.js", "module": "./dist/index.js", diff --git a/src/loader/loader.ts b/src/loader/loader.ts index e149f8b..b9ec945 100755 --- a/src/loader/loader.ts +++ b/src/loader/loader.ts @@ -1,6 +1,6 @@ import {ka_create_element} from "@kasimirjs/embed"; -const indexName = "liscom_hit_index"; +const indexName = "liscom_loader_hit_index"; let state = sessionStorage.getItem(indexName); if (state === null) { sessionStorage.setItem(indexName, "0"); @@ -27,7 +27,7 @@ export function initLoader() { document.querySelector("body").appendChild(loader); } - }, hitIndex === 1 ? 10 : 350); // Wait 350 on subsequent requests to prevent flickering + }, hitIndex === 1 ? 0 : 350); // Wait 350 on subsequent requests to prevent flickering }