Skip to content

Commit

Permalink
Use Polymer.ResolveUrl.pathFromUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Apr 3, 2018
1 parent 2128ebe commit d9d3e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/element-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit d9d3e43

Please sign in to comment.