Skip to content

Commit 581dab4

Browse files
committed
Prevent replacing the default policy
1 parent 3af98f7 commit 581dab4

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
@@ -237,6 +237,11 @@ document.querySelector("#version").textContent = _("Version",
237237

238238
async function copyContainer() {
239239
cookieStoreId = containerSelect.value;
240+
if (cookieStoreId == "default") {
241+
alert("Cannot replace the default policy.")
242+
containerCopy.value = "blank";
243+
return;
244+
}
240245
let copyCookieStoreId = containerCopy.value;
241246
let copyContainerName = containerCopy.options[containerCopy.selectedIndex].text;
242247
let copyPolicy = await UI.getPolicy(copyCookieStoreId);

0 commit comments

Comments
 (0)