Skip to content

Commit 9a9d870

Browse files
committed
Prevent replacing the default policy
1 parent bda83f4 commit 9a9d870

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ui/options.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ document.querySelector("#version").textContent = _("Version",
216216

217217
async function copyContainer() {
218218
cookieStoreId = containerSelect.value;
219+
if (cookieStoreId == "default") {
220+
alert("Cannot replace the default policy.")
221+
containerCopy.value = "blank";
222+
return;
223+
}
219224
let copyCookieStoreId = containerCopy.value;
220225
let copyContainerName = containerCopy.options[containerCopy.selectedIndex].text;
221226
let copyPolicy = await UI.getPolicy(copyCookieStoreId);

0 commit comments

Comments
 (0)