Index: mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
diff --git a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
index 0b9eb15744be6c5ce185d83b1fc549b7b2c15a4d..8772a404d8568fd54bb6c9588c870b23fe8415b8 100644 |
--- a/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
+++ b/mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl |
@@ -27,7 +27,7 @@ |
if (mojo.config.autoLoadMojomDeps) { |
mojo.internal.loadMojomIfNecessary( |
'{{import.path}}', |
- new URL('{{import|get_relative_path(module)}}.js', |
+ new URL('{{import|get_relative_url(module)}}.js', |
document.currentScript.src).href); |
} |
{%- endfor %} |