Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4342 Visualizações

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
Cancelar
Autor Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
dez. 22
6257
0
mar. 15
4789
0
dez. 24
1285
0
nov. 24
1520
0
jan. 24
7307