fix: code style and types

This commit is contained in:
linonetwo 2023-09-16 15:37:46 +08:00
parent 3bcd822c97
commit 07130c2ad0
3 changed files with 3 additions and 5 deletions

View File

@ -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;

View File

@ -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);
};
/*

View File

@ -2413,7 +2413,7 @@ html body.tc-body.tc-single-tiddler-window {
color: <<colour alert-highlight>>;
}
@keyframes fadeHighlight {
@keyframes fade-highlight {
0% {
background-color: <<colour highlight-background>>;
border-color: <<colour highlight-background>>;
@ -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: <<sidebarbreakpoint>>) {