function detectLiveReloadJs(scripts) {
    var length = scripts.length,
        script = null;
    var liveReloadDetected = false;
    for (var i = 0; i < length; i++) {
        script = scripts[i];
        if (script.src.indexOf(LIVERELOADJS_FILENAME) != -1) {
            // LiveReload.js detected!
            liveReloadDetected = true;
            break;
        }
    }
    var value = {};
    value[LIVERELOADJS_DETECTED_KEY] = liveReloadDetected;
    chrome.storage.local.set(value);
}
/**
 * Detect LiveReload.js script to avoid multiple refreshes
 */
Detect LiveReload.js script to avoid multiple refreshes
Detect LiveReload . js script to avoid multiple refreshes
function detectLiveReloadJs(scripts) {
    var length = scripts.length,
        script = null;
    var liveReloadDetected = false;
    for (var i = 0; i < length; i++) {
        script = scripts[i];
        if (script.src.indexOf(LIVERELOADJS_FILENAME) != -1) {
            liveReloadDetected = true;
            break;
        }
    }
    var value = {};
    value[LIVERELOADJS_DETECTED_KEY] = liveReloadDetected;
    chrome.storage.local.set(value);
}
function detectLiveReloadJs ( scripts ) { var length = scripts . length , script = null ; var liveReloadDetected = false ; for ( var i = 0 ; i < length ; i ++ ) { script = scripts [ i ] ; if ( script . src . indexOf ( LIVERELOADJS_FILENAME ) != - 1 ) { liveReloadDetected = true ; break ; } } var value = { } ; value [ LIVERELOADJS_DETECTED_KEY ] = liveReloadDetected ; chrome . storage . local . set ( value ) ; }
Detect LiveReload.js script to avoid multiple refreshes
Detect LiveReload . js script to avoid multiple refreshes
// LiveReload.js detected!