Part two of the changes from protected to public.

This commit is contained in:
Michael Herzberg 2016-09-15 11:44:14 +01:00
parent 3d3b8d56fa
commit d0de8dacd4
1 changed files with 29 additions and 23 deletions

View File

@ -40,7 +40,10 @@ class AllScriptsExtractor(apkUnzipDir: File) extends DefaultSourceExtractor {
val AbsolutePathRegex = """.+android_asset/(.+)""".r
val RemotePathRegex = """(https?://.+)""".r
override def getScriptFromUrl(urlString: String, scriptTag: ITag) = {
override def handleScript(tag: ITag) = {
val content = tag.getAttributeByName("src");
if (content != null) {
val urlString = content.fst
try {
// For some reason, some people use absolute script paths in their Cordova apps...
val scriptSrc = urlString match {
@ -69,4 +72,7 @@ class AllScriptsExtractor(apkUnzipDir: File) extends DefaultSourceExtractor {
}
}
}
}
}