Fix svelte warnings
This commit is contained in:
1 parent
c664f573b8
commit
87079dcb88
3 files changed
+3
-3
No files matched your search
@@ -80,7 +80,7 @@
|
|||||||
onfocusin={onfocus}
|
onfocusin={onfocus}
|
||||||
>
|
>
|
||||||
<div class="window-surface">
|
<div class="window-surface">
|
||||||
<header class="title-bar" onpointerdown={(event) => trackPointer(event, ondrag)}>
|
<header class="title-bar" role="presentation" onpointerdown={(event) => trackPointer(event, ondrag)}>
|
||||||
<span class="title">
|
<span class="title">
|
||||||
<span class="app-name"><Icon {icon} width="15" />{title}</span>
|
<span class="app-name"><Icon {icon} width="15" />{title}</span>
|
||||||
{#if path}
|
{#if path}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
const context: CommandContext = {
|
const context: CommandContext = {
|
||||||
print: (...newBlocks) => blocks.push(...newBlocks),
|
print: (...newBlocks) => blocks.push(...newBlocks),
|
||||||
clear: () => (blocks = []),
|
clear: () => (blocks = []),
|
||||||
exit: onexit,
|
exit: () => onexit(),
|
||||||
openPage,
|
openPage,
|
||||||
openUrl,
|
openUrl,
|
||||||
setTheme: (themeId) => themeState.set(themeId),
|
setTheme: (themeId) => themeState.set(themeId),
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
'0': controls.fit,
|
'0': controls.fit,
|
||||||
r: controls.rotateRight,
|
r: controls.rotateRight,
|
||||||
R: controls.rotateLeft,
|
R: controls.rotateLeft,
|
||||||
Escape: onclose
|
Escape: () => onclose()
|
||||||
};
|
};
|
||||||
|
|
||||||
function handleKeydown(event: KeyboardEvent) {
|
function handleKeydown(event: KeyboardEvent) {
|
||||||
|
|||||||
Reference in new issue
Block a user