app/js/viewer.js
// Opens html file of node in external browser
Opens html file of node in external browser
Opens html file of node in external browser
function openInBrowser(node) {
    try {
        let integrity = fs.statSync(node.path);
        console.log(integrity);
        shell.openItem(node.path);
        let currentTime = new Date();
        let date = currentTime.yyyymmdd()
        if (node.last_accessed != date) {
            updateNode(node, "last_accessed", date);
        }
    }
    catch (err) {
        missingPath(node);
    }
}
function openInBrowser ( node ) { try { let integrity = fs . statSync ( node . path ) ; console . log ( integrity ) ; shell . openItem ( node . path ) ; let currentTime = new Date ( ) ; let date = currentTime . yyyymmdd ( ) if ( node . last_accessed != date ) { updateNode ( node , "last_accessed" , date ) ; } } catch ( err ) { missingPath ( node ) ; } }
Opens html file of node in external browser
Opens html file of node in external browser
// Opens path in another electron window (NOT IN USE) //window.open(path, '_system'); // Check if file exists // Opens path in external browser //shell.openExternal(path).then(_ => _); // update date last accessed (if does not match currently) // Path integrity has failed