Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4332 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 22
6248
0
bře 15
4784
0
pro 24
1259
0
lis 24
1502
0
led 24
7297