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.
14 lines
529 B
14 lines
529 B
const load = require('./load/load');
|
|
const sort = require('./load/sort');
|
|
const lightRefresh = require("./lightrefresh");
|
|
|
|
module.exports = () => {
|
|
if (!window.kade.cpath.length || !window.kade.cdir.length) {return;}
|
|
window.kade.chdir = [];
|
|
load(true);
|
|
sort(undefined, true);
|
|
if (JSON.stringify(window.kade.cdir) !== JSON.stringify(window.kade.chdir)) {
|
|
//console.log('Detected directory updates.', JSON.stringify(window.kade.cdir), JSON.stringify(window.kade.chdir));
|
|
lightRefresh();
|
|
}
|
|
}; |