Skip to content

Commit f1f4faa

Browse files
Alexander Vakrilovelena-p
Alexander Vakrilov
authored andcommitted
fix: make FileSystemResourceLoader sync again (#2040)
1 parent 9568b80 commit f1f4faa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: nativescript-angular/resource-loader.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export class FileSystemResourceLoader extends ResourceLoader {
1616
super();
1717
}
1818

19-
get(url: string): Promise<string> {
19+
get(url: string): string {
2020
const resolvedPath = this.resolve(url);
2121

2222
const templateFile = this.fs.fileFromPath(resolvedPath);
2323

24-
return templateFile.readText();
24+
return templateFile.readTextSync();
2525
}
2626

2727
resolve(url: string): string {

0 commit comments

Comments
 (0)