Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4263 Widoki

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
Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 22
6106
0
mar 15
4624
0
gru 24
1157
0
lis 24
1374
0
sty 24
7119