Skip to content

Commit

Permalink
fix(android): Don't inject map files into capacitor script (#4893)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Aug 6, 2021
1 parent 41e1441 commit 992bebc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public static String getFilesContent(Context context, String path) {
String[] content = context.getAssets().list(path);
if (content.length > 0) {
for (String file : content) {
builder.append(getFilesContent(context, path + "/" + file));
if (!file.endsWith(".map")) {
builder.append(getFilesContent(context, path + "/" + file));
}
}
} else {
return readFile(context.getAssets(), path);
Expand Down

0 comments on commit 992bebc

Please sign in to comment.