Bagaimana Cara Memanggil Asset JS melalui Inline JS? #260
Unanswered
yuliakbard
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Buat apa itu mas? Bikin aplikasi obrol? $script = <<<JS
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('sw.js');
}
JS;
Asset::set('data:text/js;base64,' . To::base64($script), 10); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Kang, Bagaimana cara memanggil asset JS melalui inline JS?
misalnya ane, ingin menambahkan service worker di web ane. dengan inline script dasar nya seperti ini:
ane ingin memanggil asset
sw.js
yang tersimpan di asset layout.Beta Was this translation helpful? Give feedback.
All reactions