mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
refactor: add comment, remove unneeded function
This commit is contained in:
@@ -3,11 +3,6 @@
|
|||||||
import { settingsState } from "@/seqta/utils/listeners/SettingsState.ts"
|
import { settingsState } from "@/seqta/utils/listeners/SettingsState.ts"
|
||||||
|
|
||||||
|
|
||||||
function formatUrl(inputUrl: string) {
|
|
||||||
const protocolRegex = /^(http:\/\/|https:\/\/|ftp:\/\/)/;
|
|
||||||
return protocolRegex.test(inputUrl) ? inputUrl : `https://${inputUrl}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#snippet Shortcuts([string, Shortcut]) }
|
{#snippet Shortcuts([string, Shortcut]) }
|
||||||
@@ -24,6 +19,7 @@
|
|||||||
|
|
||||||
<div class="flex flex-col -mt-4 overflow-y-scroll divide-y divide-zinc-100 dark:divide-zinc-700">
|
<div class="flex flex-col -mt-4 overflow-y-scroll divide-y divide-zinc-100 dark:divide-zinc-700">
|
||||||
{#each Object.entries(settingsState.shortcuts) as shortcut}
|
{#each Object.entries(settingsState.shortcuts) as shortcut}
|
||||||
|
<!-- do processing stuff here -->
|
||||||
{@render Shortcuts(shortcut)}
|
{@render Shortcuts(shortcut)}
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user