Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4246 Tampilan

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
Avatar
Buang
Penulis Jawaban Terbai

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.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 22
6084
0
Mar 15
4593
0
Des 24
1154
0
Nov 24
1361
0
Jan 24
7099