Part two of the changes from protected to public.
This commit is contained in:
parent
3d3b8d56fa
commit
d0de8dacd4
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue