moved user location plugin back to assets root so that it's not displayed in the iitc plugins section

This commit is contained in:
Philipp Schaefer
2013-10-11 11:29:55 +02:00
parent 4eb8757c45
commit 7d60f93472
2 changed files with 6 additions and 5 deletions

View File

@ -191,8 +191,10 @@ public class IITC_WebViewClient extends WebViewClient {
}
// inject the user location script if enabled in settings
if (sharedPref.getBoolean("pref_user_loc", false))
loadJS(path + "user-location.user.js", !dev_enabled, view);
if (sharedPref.getBoolean("pref_user_loc", false)) {
path = path.replace("plugins/", "");
loadJS(path + "user-location.user.js", !dev_enabled, view);
}
}
// read a file into a string