From d475dab266fc60e5ff31a4eefab5f139b8e5e3d7 Mon Sep 17 00:00:00 2001 From: Bobby Date: Thu, 18 Apr 2024 22:31:08 -0400 Subject: Revert back translation --- static/js/tl.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'static/js') diff --git a/static/js/tl.js b/static/js/tl.js index df6c69eb..53b8bd98 100644 --- a/static/js/tl.js +++ b/static/js/tl.js @@ -45,9 +45,9 @@ function translateJapanese() { } else { selectEl.value = 'ja'; selectEl.dispatchEvent(new Event("change")); - setTimeout(function () { - save(); - }, 6969); + // setTimeout(function () { + // save(); + // }, 6969); } } @@ -62,9 +62,9 @@ if (currentLang === "ja") { $('#tl_ja').show(); $('body').addClass('ja'); $('body').removeClass('en'); - setTimeout(function () { - save(); - }, 6969); + // setTimeout(function () { + // save(); + // }, 6969); } else { $('#tl_ja').hide(); $('#tl_en').show(); @@ -87,11 +87,4 @@ function save() { window.sessionStorage.setItem(path, entirePage); } - // db.collection('pages').doc(path).get().then(page => { - // const storedPage = page?.page; - // if (storedPage === null || storedPage !== entirePage) { - // console.log('Saving page to DB'); - // savePageToDB(entirePage, path); - // } - // }); } -- cgit v1.2.3