aboutsummaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js')
-rw-r--r--static/js/tl.js19
1 files changed, 6 insertions, 13 deletions
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);
- // }
- // });
}