Desktop: Allow electron flag to disable smooth scrolling (#6712)

pull/6707/head^2
José Rebelo 2022-08-06 11:01:59 +01:00 committed by GitHub
parent d326700d32
commit bd5ce114a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -277,6 +277,13 @@ export default class BaseApplication {
continue;
}
if (arg === '--disable-smooth-scrolling') {
// Electron-specific flag - ignore it
// Allows users to disable smooth scrolling
argv.splice(0, 1);
continue;
}
if (arg.length && arg[0] === '-') {
throw new JoplinError(_('Unknown flag: %s', arg), 'flagError');
} else {