Skip to content

Commit 4a67afc

Browse files
committed
DA Live Preview
1 parent fc02d5f commit 4a67afc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/scripts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,8 @@ export async function loadPage() {
219219
}
220220

221221
loadPage();
222+
223+
(async function loadDa() {
224+
if (!new URL(window.location.href).searchParams.get('dapreview')) return;
225+
import('https://da.live/scripts/dapreview.js').then(({ default: daPreview }) => daPreview(loadPage));
226+
}());

0 commit comments

Comments
 (0)