Skip to content

Commit

Permalink
fix(demo/icon): remove preloadIcon in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Apr 5, 2023
1 parent 42d3914 commit 72fe224
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions demo/icon/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import {preloadIcon} from '@alwatr/icon';
import '@alwatr/icon';
// import {preloadIcon} from '@alwatr/icon';
import {random} from '@alwatr/math';

const iconList = [
Expand Down Expand Up @@ -430,6 +431,6 @@ function addIcon(): void {
document.addEventListener('click', addIcon);
addIcon();

for (const iconName of iconList) {
preloadIcon(iconName + '-outline');
}
// for (const iconName of iconList) {
// preloadIcon(iconName + '-outline');
// }

0 comments on commit 72fe224

Please sign in to comment.