support/watcher.js
function isWatching(fileName) {
    for (var i=0;i<watching.length;i++) {
        if (fileName.endsWith(watching[i])) {
            return true;
        }
    }
    //noinspection RedundantIfStatementJS
    if (fileName.toLowerCase().lastIndexOf("restart.livesync") === (fileName.length - 16)) {
        return true;
    }
    //noinspection RedundantIfStatementJS
    if (fileName.toLowerCase().lastIndexOf("restart.liveedit") === (fileName.length - 16)) {
        return true;
    }
    return false;
}
function isWatching(fileName) {
    for (var i=0;i<watching.length;i++) {
        if (fileName.endsWith(watching[i])) {
            return true;
        }
    }
    //noinspection RedundantIfStatementJS
    if (fileName.toLowerCase().lastIndexOf("restart.livesync") === (fileName.length - 16)) {
        return true;
    }
    //noinspection RedundantIfStatementJS
    if (fileName.toLowerCase().lastIndexOf("restart.liveedit") === (fileName.length - 16)) {
        return true;
    }
    return false;
}
function isWatching ( fileName ) { for ( var i = 0 ; i < watching . length ; i ++ ) { if ( fileName . endsWith ( watching [ i ] ) ) { return true ; } } //noinspection RedundantIfStatementJS if ( fileName . toLowerCase ( ) . lastIndexOf ( "restart.livesync" ) === ( fileName . length - 16 ) ) { return true ; } //noinspection RedundantIfStatementJS if ( fileName . toLowerCase ( ) . lastIndexOf ( "restart.liveedit" ) === ( fileName . length - 16 ) ) { return true ; } return false ; }
isWatching - will respond true if watching this file type.
@param fileName
@returns {boolean}
isWatching - will respond true if watching this file type .