Skip to content

Commit

Permalink
perf(ddragon): change hourglass link to utf-8 encoded string
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Oct 21, 2016
1 parent e3d077b commit 2eeeaf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/shared/ddragon.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export class DDragonDirective implements OnInit, OnChanges {
@Input() x: number = -1;
@Input() y: number = -1;

private defaultImg: string = '/images/hourglass.svg';
private defaultImg: string =
'data:image/svg+xml,' + encodeURIComponent(require('../assets/images/hourglass.svg'));

private realm: string = '';

constructor(private el: ElementRef, private lolApi: LolApiService) {}
Expand Down

0 comments on commit 2eeeaf9

Please sign in to comment.