[REF] utils: rename loadTemplates into loadFile

closes #351
This commit is contained in:
Géry Debongnie
2019-10-17 12:20:22 +02:00
committed by aab-odoo
parent 4bc49e7241
commit 0aeebd7b6e
8 changed files with 32 additions and 25 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
*
* - whenReady
* - loadJS
* - loadTemplates
* - loadFile
* - escape
* - debounce
*/
@@ -43,7 +43,7 @@ export function loadJS(url: string): Promise<void> {
return promise;
}
export async function loadTemplates(url: string): Promise<string> {
export async function loadFile(url: string): Promise<string> {
const result = await fetch(url);
if (!result.ok) {
throw new Error("Error while fetching xml templates");