Add export subscriptions to JSON button

This commit is contained in:
Miguel Ribeiro
2024-02-14 01:05:48 +01:00
parent c9135e1dc8
commit f2ed357f60
13 changed files with 73 additions and 1 deletions
+4
View File
@@ -608,4 +608,8 @@ function setRemoveBackgroundCookie() {
const removeBackgroundCheckbox = document.querySelector("#removebackground");
const value = removeBackgroundCheckbox.checked;
document.cookie = `removeBackground=${value}; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/`;
}
function exportToJson() {
window.location.href = "endpoints/subscriptions/export.php";
}