You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
621 B
24 lines
621 B
const os = require('os');
|
|
|
|
const setButtons = require('./setbuttons');
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
window.kade = {};
|
|
|
|
window.kade.elc = false;
|
|
window.kade.cpath = '';
|
|
window.kade.sort = 'Name';
|
|
window.kade.ascend = true;
|
|
|
|
const startDir = `${os.homedir}\\Desktop`;
|
|
|
|
require('../fileview/refresh')(startDir);
|
|
setButtons();
|
|
|
|
document.onclick = () => {
|
|
setTimeout(function () {
|
|
if (window.kade.elc) {window.kade.elc = false; return;}
|
|
if (window.kade.cl) {window.kade.cl.classList.remove('file-active');}
|
|
}, 100);
|
|
}
|
|
});
|
|
|