refactor: add comment, remove unneeded function

This commit is contained in:
Alphons Joseph
2024-09-05 21:46:21 +08:00
parent 428ad7569e
commit 220d15ebbc
@@ -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>