Compare commits
No commits in common. "299fa8a4e52c951bc603f7668c801ae68b9039c2" and "e3c8ccdca45e8c58db0e1bc9f0c801c7cb02d3c3" have entirely different histories.
299fa8a4e5
...
e3c8ccdca4
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "multi-hoster-uploader",
|
||||
"version": "2.7.9",
|
||||
"version": "2.7.8",
|
||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -1200,13 +1200,12 @@ function askLegacyBackupPassword() {
|
||||
}
|
||||
|
||||
async function doBackupImport(legacyPassword) {
|
||||
const pw = typeof legacyPassword === 'string' ? legacyPassword : undefined;
|
||||
try {
|
||||
const result = await window.api.importBackup(pw);
|
||||
const result = await window.api.importBackup(legacyPassword);
|
||||
if (!result || result.canceled) return;
|
||||
if (result.needsPassword) {
|
||||
const entered = await askLegacyBackupPassword();
|
||||
if (entered) doBackupImport(entered);
|
||||
const pw = await askLegacyBackupPassword();
|
||||
if (pw) doBackupImport(pw);
|
||||
return;
|
||||
}
|
||||
if (result.ok) {
|
||||
@ -2312,8 +2311,8 @@ function renderSettings() {
|
||||
arrow.innerHTML = isOpen ? '▶' : '▼';
|
||||
});
|
||||
|
||||
document.getElementById('exportBackupBtn').addEventListener('click', () => doBackupExport());
|
||||
document.getElementById('importBackupBtn').addEventListener('click', () => doBackupImport());
|
||||
document.getElementById('exportBackupBtn').addEventListener('click', doBackupExport);
|
||||
document.getElementById('importBackupBtn').addEventListener('click', doBackupImport);
|
||||
|
||||
// --- Separator before hoster panels ---
|
||||
const separator = document.createElement('div');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user