Commit 805746c1 authored by roadscape's avatar roadscape
Browse files

disable ff

parent cf5fad02
...@@ -380,6 +380,8 @@ function* usernamePasswordLogin({ ...@@ -380,6 +380,8 @@ function* usernamePasswordLogin({
} }
if (!autopost && saveLogin) yield put(userActions.saveLogin()); if (!autopost && saveLogin) yield put(userActions.saveLogin());
/*
// Feature Flags // Feature Flags
if (useKeychain || private_keys.get('posting_private')) { if (useKeychain || private_keys.get('posting_private')) {
yield fork( yield fork(
...@@ -388,6 +390,8 @@ function* usernamePasswordLogin({ ...@@ -388,6 +390,8 @@ function* usernamePasswordLogin({
useKeychain ? null : private_keys.get('posting_private').toString() useKeychain ? null : private_keys.get('posting_private').toString()
); );
} }
*/
// TOS acceptance // TOS acceptance
yield fork(promptTosAcceptance, username); yield fork(promptTosAcceptance, username);
} }
...@@ -700,7 +704,7 @@ function* uploadImage({ ...@@ -700,7 +704,7 @@ function* uploadImage({
}; };
xhr.upload.onprogress = function(event) { xhr.upload.onprogress = function(event) {
if (event.lengthComputable) { if (event.lengthComputable) {
const percent = Math.round(event.loaded / event.total * 100); const percent = Math.round((event.loaded / event.total) * 100);
progress({ message: `Uploading ${percent}%` }); progress({ message: `Uploading ${percent}%` });
// console.log('Upload', percent) // console.log('Upload', percent)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment