تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4225 أدوات العرض

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
ديسمبر 22
6066
0
مارس 15
4580
0
ديسمبر 24
1148
0
نوفمبر 24
1356
0
يناير 24
7096