Skip to content

Commit

Permalink
Revert default path name change, add full ressource path to new example
Browse files Browse the repository at this point in the history
  • Loading branch information
jannicz committed Feb 23, 2020
1 parent 585332e commit e8c47f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/svg-icon-sprite.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion examples/onload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const addMoreBtn = document.querySelector('#add-more-btn');
const moreExamplesList = document.querySelector('#more-example-list');
const iconSrcArr = ['build-24px', 'accessibility-24px', 'language-24px'];
const iconSrcArr = [
'../assets/sprites/sprite.svg#build-24px',
'../assets/sprites/sprite.svg#accessibility-24px',
'../assets/sprites/sprite.svg#language-24px'
];
let count = 0;

// Polyfill forEach for NodeLists
Expand Down
2 changes: 1 addition & 1 deletion src/svg-icon.webcomponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SvgIcon extends HTMLElement {
viewBox: string;

// Default settings
public defaultPath = '/assets/sprites/sprite.svg';
public defaultPath = 'assets/sprites/sprite.svg';

// Private variables
private cssStyle: string = `fill: currentColor;`;
Expand Down

0 comments on commit e8c47f8

Please sign in to comment.