Small forgotten fixes for new virtual URIs

This commit is contained in:
fkloft 2014-01-05 17:38:23 +01:00
parent a1d03ec69b
commit 1059e85324
2 changed files with 2 additions and 2 deletions

View File

@ -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) {" +

View File

@ -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);
}; };