Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4234 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
déc. 22
6068
0
mars 15
4582
0
déc. 24
1148
0
nov. 24
1357
0
janv. 24
7096