Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2224)

Unified Diff: mojo/public/tools/bindings/generators/js_templates/module.amd.tmpl

Issue 2930423002: Mojo JS bindings: convert relative path to URL properly. (Closed)
Patch Set:  Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 %}

Powered by Google App Engine
This is Rietveld 408576698