Skip to content

Commit e0c6479

Browse files
committed
Prevent replacing the default policy
1 parent ae3ce4e commit e0c6479

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

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

0 commit comments

Comments
 (0)