Skip to content

Commit 1d93edb

Browse files
authored
Merge pull request #63 from cloudadoption/issue-dalivepreview
DA Live Preview
2 parents fc02d5f + 4a67afc commit 1d93edb

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)