chore(cloudcmd) lint

This commit is contained in:
coderaiser 2021-06-08 14:13:46 +03:00
parent f92152195c
commit fbc8ae25ad
5 changed files with 8 additions and 10 deletions

View file

@ -212,7 +212,7 @@ module.exports.setCurrentFile = (currentFile, options) => {
* but it should be false
* to prevent default behavior
*/
if (!o || o.history !== false) {
if (!o || o.history) {
const historyPath = path === '/' ? path : FS + path;
DOM.setHistory(historyPath, null, historyPath);
}

View file

@ -261,6 +261,7 @@ async function switchKey(event) {
Operation.show('extract');
else
CloudCmd.Menu.show();
event.preventDefault();
break;

View file

@ -101,7 +101,7 @@ async function show(data, options = {}) {
if (Loading)
return;
if (!options || options.bindKeys !== false)
if (!options || options.bindKeys)
Events.addKey(listener);
El = createElement('div', {