콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4223 화면

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
아바타
취소
작성자 베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
2
12월 22
6065
0
3월 15
4579
0
12월 24
1147
0
11월 24
1355
0
1월 24
7093