Skip to content

Commit f3ad0ea

Browse files
committed
Prevent replacing the default policy
1 parent ee1188e commit f3ad0ea

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

224224
async function copyContainer() {
225225
cookieStoreId = containerSelect.value;
226+
if (cookieStoreId == "default") {
227+
alert("Cannot replace the default policy.")
228+
containerCopy.value = "blank";
229+
return;
230+
}
226231
let copyCookieStoreId = containerCopy.value;
227232
let copyContainerName = containerCopy.options[containerCopy.selectedIndex].text;
228233
let copyPolicy = await UI.getPolicy(copyCookieStoreId);

0 commit comments

Comments
 (0)