This commit is contained in:
zhw2590582 committed 2021-11-28 11:10:24 +08:00
1 parent 482f02824d
commit d72d816ef7
7 files changed
+82 -13

No files matched your search

@@ -5,7 +5,8 @@ document.addEventListener('click', (event) => {
if (codeElement) {
const libs = event.target.dataset.libs || '';
const code = encodeURIComponent(codeElement.innerText);
const url = 'https://artplayer.org/?libs=' + libs + '&code=' + code;
const env = window.location.host.includes('localhost') ? 'http://localhost:8081' : 'https://artplayer.org';
const url = env + '/?libs=' + libs + '&code=' + code;
window.open(url);
}
}