From 07130c2ad094dcb04c65fb8ce8496a40afb8a2ac Mon Sep 17 00:00:00 2001 From: linonetwo Date: Sat, 16 Sep 2023 15:37:46 +0800 Subject: [PATCH] fix: code style and types --- core/modules/startup/rootwidget.js | 2 -- core/modules/widgets/blockid.js | 2 +- themes/tiddlywiki/vanilla/base.tid | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/core/modules/startup/rootwidget.js b/core/modules/startup/rootwidget.js index 580c0e94d..716275cda 100644 --- a/core/modules/startup/rootwidget.js +++ b/core/modules/startup/rootwidget.js @@ -72,8 +72,6 @@ exports.startup = function() { }); // Install the tm-focus-selector message $tw.rootWidget.addEventListener("tm-focus-selector",function(event) { - event = $tw.hooks.invokeHook("th-focus-selector",event); - if (!event) return; var selector = event.param || "", element, baseElement = event.event && event.event.target ? event.event.target.ownerDocument : document; diff --git a/core/modules/widgets/blockid.js b/core/modules/widgets/blockid.js index 1138fdd03..916793ba5 100644 --- a/core/modules/widgets/blockid.js +++ b/core/modules/widgets/blockid.js @@ -81,7 +81,7 @@ BlockIdWidget.prototype._scrollToBlockAndHighlight = function(element) { }; BlockIdWidget.prototype.removeChildDomNodes = function() { - $tw.hooks.removeHook("th-focus-selector",this.hookNavigatedEvent); + $tw.hooks.removeHook("th-navigated",this.hookNavigatedEvent); }; /* diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index e957ea0f9..f6de39f2a 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -2413,7 +2413,7 @@ html body.tc-body.tc-single-tiddler-window { color: <>; } -@keyframes fadeHighlight { +@keyframes fade-highlight { 0% { background-color: <>; border-color: <>; @@ -2425,7 +2425,7 @@ html body.tc-body.tc-single-tiddler-window { } .tc-focus-highlight { - animation: fadeHighlight 2s forwards; + animation: fade-highlight 2s forwards; } @media (min-width: <>) {