reverse atob and btoa to proper standard (damn dyslexia)

This commit is contained in:
zefie
2023-11-10 15:04:48 -05:00
parent bd26ba8923
commit 87f09ffec1
3 changed files with 19 additions and 19 deletions

View File

@@ -83,7 +83,7 @@ class WTVFavorites {
var self = this;
if (folder_templates[folder]) {
Object.keys(folder_templates[folder]).forEach(function (k) {
self.createFavorite(folder_templates[folder][k].title, folder_templates[folder][k].url, folder, (folder_templates[folder][k].image_type == "image/wtv-bitmap") ? atob(folder_templates[folder][k].image) : folder_templates[folder][k].image, folder_templates[folder][k].image_type);
self.createFavorite(folder_templates[folder][k].title, folder_templates[folder][k].url, folder, (folder_templates[folder][k].image_type == "image/wtv-bitmap") ? btoa(folder_templates[folder][k].image) : folder_templates[folder][k].image, folder_templates[folder][k].image_type);
})
}
}
@@ -140,7 +140,7 @@ class WTVFavorites {
var favoritefile = favoriteid + this.favFileExt;
var favoritefileout = folderpath + favoritefile;
if (imagetype != "url")
image = btoa(image);
image = atob(image);
title = decodeURIComponent(title).replaceAll("+", " ");
url = decodeURIComponent(url)