Small forgotten fixes for new virtual URIs
This commit is contained in:
parent
a1d03ec69b
commit
1059e85324
@ -83,7 +83,7 @@ public class IITC_WebViewClient extends WebViewClient {
|
|||||||
|
|
||||||
// inject the user location script if enabled in settings
|
// inject the user location script if enabled in settings
|
||||||
if (Integer.parseInt(sharedPref.getString("pref_user_location_mode", "0")) != 0) {
|
if (Integer.parseInt(sharedPref.getString("pref_user_location_mode", "0")) != 0) {
|
||||||
scripts.add("script/user-location.user.js");
|
scripts.add("script" + DOMAIN + "/user-location.user.js");
|
||||||
}
|
}
|
||||||
|
|
||||||
String js = "(function(){['" + TextUtils.join("','", scripts) + "'].forEach(function(src) {" +
|
String js = "(function(){['" + TextUtils.join("','", scripts) + "'].forEach(function(src) {" +
|
||||||
|
@ -33,7 +33,7 @@ public final class Log {
|
|||||||
CONSOLE_MAPPING.put(MessageLevel.ERROR, android.util.Log.ERROR);
|
CONSOLE_MAPPING.put(MessageLevel.ERROR, android.util.Log.ERROR);
|
||||||
CONSOLE_MAPPING.put(MessageLevel.DEBUG, android.util.Log.DEBUG);
|
CONSOLE_MAPPING.put(MessageLevel.DEBUG, android.util.Log.DEBUG);
|
||||||
|
|
||||||
URL_PATTERN = Pattern.compile("^https?://([a-z.]+)" + Pattern.quote(IITC_FileManager.DOMAIN) + "/(.*)$",
|
URL_PATTERN = Pattern.compile("^https?://([a-z.-]+)" + Pattern.quote(IITC_FileManager.DOMAIN) + "/(.*)$",
|
||||||
Pattern.CASE_INSENSITIVE);
|
Pattern.CASE_INSENSITIVE);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user