From d9d3e439126d2619c06c3f174f133cd950cfd952 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Mon, 2 Apr 2018 18:08:21 -0700 Subject: [PATCH] Use Polymer.ResolveUrl.pathFromUrl --- lib/mixins/element-mixin.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mixins/element-mixin.html b/lib/mixins/element-mixin.html index 0869aa3934..33e7758cc0 100644 --- a/lib/mixins/element-mixin.html +++ b/lib/mixins/element-mixin.html @@ -411,7 +411,7 @@ if (!this.hasOwnProperty(JSCompiler_renameProperty('_importPath', this))) { const meta = this.importMeta; if (meta) { - this._importPath = meta.url.slice(0, meta.url.lastIndexOf('/') + 1); + this._importPath = Polymer.ResolveUrl.pathFromUrl(meta.url); } else { const module = Polymer.DomModule && Polymer.DomModule.import(/** @type {PolymerElementConstructor} */ (this).is); this._importPath = (module && module.assetpath) ||