Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 8500f45

Browse files
committed
this fixes #202
1 parent f9cd629 commit 8500f45

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

js/assets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Useful ref.: // Ref.: http://www.html5rocks.com/en/tutorials/file/filesystem/
6161

6262
var fileSystem;
6363
var fileSystemQuota = 24 * 1024 * 1024;
64-
var remoteRoot = 'https://raw2.github.com/gorhill/httpswitchboard/master/';
64+
var remoteRoot = HTTPSB.projectServerRoot;
6565

6666
/******************************************************************************/
6767

js/background.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ var HTTPSB = {
5050
clearBrowserCacheCycle: 0,
5151
inlineFieldSeparator: '#',
5252

53+
projectServerRoot: 'https://raw2.github.com/gorhill/httpswitchboard/master/',
54+
5355
// list of remote blacklist locations
5456
remoteBlacklists: {
5557
// User

js/traffic.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ function onBeforeRequestHandler(details) {
156156
if ( requestURL.indexOf('filesystem:') === 0 ) {
157157
return;
158158
}
159+
// Do not block myself from updating assets
160+
// https://github.com/gorhill/httpswitchboard/issues/202
161+
if ( requestURL.indexOf(HTTPSB.projectServerRoot) === 0 ) {
162+
return;
163+
}
159164

160165
var httpsb = HTTPSB;
161166

0 commit comments

Comments
 (0)