Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4252 มุมมอง

Hi everyone, is there a way to use an external javascript in my website? I'm trying to use model-viewer but if I copy the script to a local folder and extend website.assets_frontend it shows an error in the console.

Version: Odoo 14

Uncaught SyntaxError: Unexpected token 'export'


For reference:
https://modelviewer.dev/

Thanks
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Adding the script to other view different from website.assets_frontend do the trick, in my case I extend the footer with the script tag.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 22
6096
0
มี.ค. 15
4605
0
ธ.ค. 24
1154
0
พ.ย. 24
1365
0
ม.ค. 24
7103