Skip to Content
Menú
This question has been flagged
1 Respondre
4240 Vistes

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
Descartar
Autor Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
2
de des. 22
6079
0
de març 15
4591
0
de des. 24
1154
0
de nov. 24
1361
0
de gen. 24
7098