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(); const content = await navigator.clipboard.readText();
$settings.rsources = JSON.parse(content); $settings.rsources = JSON.parse(content);
} catch { } 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]; const boardname = location.pathname.match(/\/([^/]*)\//)![1];
let updating = false; let updating = false;
@ -124,7 +129,12 @@
<div class="backpanel" transition:slide> <div class="backpanel" transition:slide>
<div class="content"> <div class="content">
<h1>PEE Settings 0.{rev}</h1> <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 /> <hr />
<Tabs> <Tabs>
<TabList> <TabList>
@ -294,9 +304,7 @@
}}>Add a source</button }}>Add a source</button
> >
{#if $settings.rsources.length == 0} {#if $settings.rsources.length == 0}
<button <button on:click={setFromClip}>Import Bulk from clipboard</button>
on:click={setFromClip}>Import Bulk from clipboard</button
>
{/if} {/if}
<Dialog bind:this={dial}> <Dialog bind:this={dial}>
<div class="form"> <div class="form">
@ -420,7 +428,7 @@
PNG Embedding method PNG Embedding method
<select bind:value={$settings.pmeth}> <select bind:value={$settings.pmeth}>
{#each [0, 1, 2, 3, 4, 5] as m} {#each [0, 1, 2, 3, 4, 5] as m}
<option value={m}>Method {m}</option> <option value={m}>Method {m}</option>
{/each} {/each}
</select> </select>
</label> </label>

Loading…
Cancel
Save