This repository was archived by the owner on Nov 15, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed
Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1919 Home: https://github.com/gorhill/httpswitchboard
2020*/
2121
22+ /* global chrome, $ */
23+
2224/******************************************************************************/
2325
2426$ ( function ( ) {
Original file line number Diff line number Diff line change 1919 Home: https://github.com/gorhill/httpswitchboard
2020*/
2121
22+ /* global chrome, HTTPSB */
23+
2224/******************************************************************************/
23- //
25+
2426// Asset update manager
25- //
26- /******************************************************************************/
2727
2828HTTPSB . assetUpdater = ( function ( ) {
2929
@@ -55,7 +55,8 @@ var getUpdateList = function(callback) {
5555 var remoteAssetChecksums = parseChecksumsText ( remoteChecksumsText ) ;
5656
5757 var toUpdate = { } ;
58- for ( var path in remoteAssetChecksums ) {
58+ var path ;
59+ for ( path in remoteAssetChecksums ) {
5960 if ( ! remoteAssetChecksums . hasOwnProperty ( path ) ) {
6061 continue ;
6162 }
@@ -81,7 +82,7 @@ var getUpdateList = function(callback) {
8182 localChecksum : localAssetChecksums [ path ]
8283 } ;
8384 }
84- for ( var path in localAssetChecksums ) {
85+ for ( path in localAssetChecksums ) {
8586 if ( ! localAssetChecksums . hasOwnProperty ( path ) ) {
8687 continue ;
8788 }
Original file line number Diff line number Diff line change 1919 Home: https://github.com/gorhill/httpswitchboard
2020*/
2121
22+ /* global chrome, HTTPSB */
23+
2224/*******************************************************************************
2325
2426Assets
@@ -51,10 +53,8 @@ File system structure:
5153// Ref: http://www.html5rocks.com/en/tutorials/file/filesystem/
5254
5355/******************************************************************************/
54- //
56+
5557// Low-level asset files manager
56- //
57- /******************************************************************************/
5858
5959HTTPSB . assets = ( function ( ) {
6060
Original file line number Diff line number Diff line change 1919 Home: https://github.com/gorhill/httpswitchboard
2020*/
2121
22- /* global HTTPSB */
22+ /* global chrome, HTTPSB */
2323
2424/******************************************************************************/
2525
You can’t perform that action at this time.
0 commit comments