Skip to Content
Menu
This question has been flagged
1 Atsakyti
4221 Rodiniai

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
Portretas
Atmesti
Autorius 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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
gruod. 22
6063
0
kov. 15
4578
0
gruod. 24
1145
0
lapkr. 24
1354
0
saus. 24
7092