1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
* Fixed: Bug when switching storage providers causing the provider to not change.
* Fixed: Revert changes to file picker while investigating some users being unable to select a file.
This commit is contained in:
SirStendec 2021-03-02 20:18:32 -05:00
parent add9f7a7d5
commit 715a92e298
4 changed files with 11 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{
"name": "frankerfacez",
"author": "Dan Salvato LLC",
"version": "4.20.73",
"version": "4.20.74",
"description": "FrankerFaceZ is a Twitch enhancement suite.",
"license": "Apache-2.0",
"scripts": {

View file

@ -91,6 +91,9 @@ export default {
let file;
try {
file = await openFile('application/json,application/zip');
if ( ! file )
return;
} catch(err) {
this.error_desc = this.t('setting.backup-restore.read-error', 'Unable to read file.');
this.error = true;

View file

@ -522,7 +522,7 @@ export default class SettingsManager extends Module {
}
// Change over.
localStorage.ffzProvider = key;
localStorage.ffzProviderv2 = key;
location.reload();
}

View file

@ -205,20 +205,22 @@ export function openFile(contentType, multiple) {
let resolved = false;
const focuser = () => {
// TODO: Investigate this causing issues
// for some users.
/*const focuser = () => {
off(window, 'focus', focuser);
setTimeout(() => {
if ( ! resolved ) {
resolved = true;
resolve(multiple ? [] : null);
}
}, 500);
}, 5000);
};
on(window, 'focus', focuser);
on(window, 'focus', focuser);*/
input.onchange = () => {
off(window, 'focus', focuser);
//off(window, 'focus', focuser);
if ( ! resolved ) {
resolved = true;
const files = Array.from(input.files);