Browse Source

Add alternative way to paste boorus on FF

pull/54/head
coomdev 2 years ago
parent
commit
2ffc11d901
  1. 22
      src/Components/App.svelte

22
src/Components/App.svelte

@ -65,9 +65,14 @@
const content = await navigator.clipboard.readText();
$settings.rsources = JSON.parse(content);
} catch {
alert("How can you fail so badly? pathetic...");
try {
const content = prompt("Paste it in here") || '';
$settings.rsources = JSON.parse(content);
} catch {
alert("How can you fail so badly? pathetic...");
}
}
}
};
const boardname = location.pathname.match(/\/([^/]*)\//)![1];
let updating = false;
@ -124,7 +129,12 @@
<div class="backpanel" transition:slide>
<div class="content">
<h1>PEE Settings 0.{rev}</h1>
<h4><a href="https://2chen.moe/tech/">Join us on 2chen!</a><a href="https://git.coom.tech/araragi/JKCS/src/branch/master/README.md">Install JKCS!</a></h4>
<h4>
<a href="https://2chen.moe/tech/">Join us on 2chen!</a>
<a href="https://git.coom.tech/araragi/JKCS/src/branch/master/README.md"
>Install JKCS!</a
>
</h4>
<hr />
<Tabs>
<TabList>
@ -294,9 +304,7 @@
}}>Add a source</button
>
{#if $settings.rsources.length == 0}
<button
on:click={setFromClip}>Import Bulk from clipboard</button
>
<button on:click={setFromClip}>Import Bulk from clipboard</button>
{/if}
<Dialog bind:this={dial}>
<div class="form">
@ -420,7 +428,7 @@
PNG Embedding method
<select bind:value={$settings.pmeth}>
{#each [0, 1, 2, 3, 4, 5] as m}
<option value={m}>Method {m}</option>
<option value={m}>Method {m}</option>
{/each}
</select>
</label>

Loading…
Cancel
Save