Solved a bug where the options window was breaking the popup window. The issue was that some branches of the message handler in the background script weren't returning anything at all.
This commit is contained in:
@@ -9,16 +9,16 @@
|
||||
|
||||
</head>
|
||||
|
||||
<body x-data="options" class="text-fuchsia-900 bg-fuchsia-400 p-32">
|
||||
<h1 class="text-6xl font-bold">Advanced</h1>
|
||||
<body x-data="options" class="text-fuchsia-900 p-3.5 lg:p-32">
|
||||
<h1 class=" text-3xl lg:text-6xl font-bold">Advanced Settings</h1>
|
||||
|
||||
<select class="mt-3 input w-64" x-model.number="profileIndex" name="profiles" id="profiles" class="mt-3">
|
||||
<select class="input mt-3 w-64" x-model.number="profileIndex" name="profiles" id="profiles">
|
||||
<template x-for="(profileName, index) in profileNames" :key="profileName">
|
||||
<option x-text="profileName" :value="index"></option>
|
||||
</template>
|
||||
</select>
|
||||
|
||||
<h2 class="text-5xl font-bold mt-6">Relays</h2>
|
||||
<h2 class="text-2xl lg:text-5xl font-bold mt-6">Relays</h2>
|
||||
|
||||
<table class="mt-3">
|
||||
<thead class="font-bold text-lg">
|
||||
@@ -31,24 +31,25 @@
|
||||
<tr>
|
||||
<td class="p-2 w-1/3" x-text="relay.url"></td>
|
||||
<td class="p-2 text-center">
|
||||
<input type="checkbox" x-model="relay.read" @change="await saveRelaysForProfile(index)">
|
||||
<input class="checkbox" type="checkbox" x-model="relay.read" @change="await saveRelaysForProfile(index)">
|
||||
</td>
|
||||
<td class="p-2 text-center">
|
||||
<input type="checkbox" x-model="relay.write" @change="await saveRelaysForProfile(index)">
|
||||
<input class="checkbox" type="checkbox" x-model="relay.write" @change="await saveRelaysForProfile(index)">
|
||||
</td>
|
||||
<td class="p-2 text-center">
|
||||
<button class="btn" @click="await deleteRelay(index)">Delete</button>
|
||||
<button class="button" @click="await deleteRelay(index)">Delete</button>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
|
||||
<input class="mt-3 input" x-model="newRelay" type="text" @keyup.enter="await addRelay()" placeholder="wss://...">
|
||||
<button class="btn" @click="await addRelay()">Add</button>
|
||||
<input class="mt-3 input" x-model="newRelay" type="text" @keyup.enter="await addRelay()" placeholder="wss://..."
|
||||
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="off">
|
||||
<button class="button" @click="await addRelay()">Add</button>
|
||||
<div class="text-red-500 font-bold" x-show="urlError.length > 0" x-text="urlError"></div>
|
||||
|
||||
<div class="mt-6">
|
||||
<button class="btn" @click="window.close()">Close</button>
|
||||
<button class="button" @click="window.close()">Close</button>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user