fd8a40783d
Sketch 43 files are technically a zip file, so the JavaScript opens the zip file & locates a preview.png which is just a quick preview of the last sketch page edited. After that is loaded it simply places the image into the DOM
8 lines
207 B
JavaScript
8 lines
207 B
JavaScript
/* eslint-disable no-new */
|
|
import SketchLoader from './sketch';
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
const el = document.getElementById('js-sketch-viewer');
|
|
|
|
new SketchLoader(el);
|
|
});
|