Skip to content

Commit 42df297

Browse files
committed
In file AppBrowser.java: New code within shouldOverrideUrlLoading() to
check for whitelisting custom schemes via a new "AllowedSchemes" preference configuration item. Allows custom schemes like "mycoolapp://" or "wevotetwitterscheme://" In file inappbrowser.js: Added new "customscheme" channel.
1 parent 27500c2 commit 42df297

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/android/InAppBrowser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,4 +1256,4 @@ public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, Str
12561256
super.onReceivedHttpAuthRequest(view, handler, host, realm);
12571257
}
12581258
}
1259-
}
1259+
}

www/inappbrowser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
'loadstart': channel.create('loadstart'),
3737
'loadstop': channel.create('loadstop'),
3838
'loaderror': channel.create('loaderror'),
39-
'customscheme': channel.create('customscheme'),
40-
'exit': channel.create('exit')
39+
'exit': channel.create('exit'),
40+
'customscheme': channel.create('customscheme')
4141
};
4242
}
4343

0 commit comments

Comments
 (0)