Compare commits
2 Commits
e3c8ccdca4
...
299fa8a4e5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
299fa8a4e5 | ||
|
|
161357522e |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "multi-hoster-uploader",
|
||||
"version": "2.7.8",
|
||||
"version": "2.7.9",
|
||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -1200,12 +1200,13 @@ function askLegacyBackupPassword() {
|
||||
}
|
||||
|
||||
async function doBackupImport(legacyPassword) {
|
||||
const pw = typeof legacyPassword === 'string' ? legacyPassword : undefined;
|
||||
try {
|
||||
const result = await window.api.importBackup(legacyPassword);
|
||||
const result = await window.api.importBackup(pw);
|
||||
if (!result || result.canceled) return;
|
||||
if (result.needsPassword) {
|
||||
const pw = await askLegacyBackupPassword();
|
||||
if (pw) doBackupImport(pw);
|
||||
const entered = await askLegacyBackupPassword();
|
||||
if (entered) doBackupImport(entered);
|
||||
return;
|
||||
}
|
||||
if (result.ok) {
|
||||
@ -2311,8 +2312,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