Spaces:
Running
Running
Ron Au
commited on
Commit
•
ed0a6c7
1
Parent(s):
c0087aa
perf(html-to-image): Use faster package
Browse files
static/js/dom-manipulation.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import { toPng } from 'https://cdn.
|
2 |
|
3 |
const updateCardName = (trainerName, pokeName, useTrainerName) => {
|
4 |
const cardName = document.querySelector('.pokecard .name');
|
|
|
1 |
+
import { toPng } from 'https://cdn.jsdelivr.net/npm/html-to-image@~1.9/es/index.js/+esm';
|
2 |
|
3 |
const updateCardName = (trainerName, pokeName, useTrainerName) => {
|
4 |
const cardName = document.querySelector('.pokecard .name');
|