mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
update
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user