error on script.js

Friday, March 29, 2024 2:53:51 PM
  • Posted: Friday, December 27, 2019 11:51 AM
  • 19
Hi,
I have these 2 errors on firefox console:
1.The resource from “https://www.artshill.ir/Themes/OrangeBlue/Content/js/script.js” was blocked due to MIME type (“”) mismatch (X-Content-Type-Options: nosniff)
2.Loading failed for the <script> with source “https://www.artshill.ir/Themes/OrangeBlue/Content/js/script.js”.

is there any mistake that I did in configuration?
0
  • Posted: Friday, December 27, 2019 2:26 PM
  • 74
By default, there is no script at the js folder. Have you made any changes?
Best regards,
Tomasz
GrandNode Team
0
  • Posted: Friday, December 27, 2019 3:49 PM
  • 19
I solved my problem by replacing
Html.AppendScriptParts(ResourceLocation.Footer, string.Format("~/Themes/{0}/Content/js/script.js", themeName));
with
Html.AppendScriptParts(ResourceLocation.Footer, string.Format("~/Themes/{0}/Content/js/js-offcanvas.pkgd.min.js", themeName));

in head.chtml

I use OrangeBlue Theme, I think you forgot to replace that in your download folder.
0
  • Posted: Monday, December 30, 2019 6:57 AM
  • 74
Sepehr wrote:
I use OrangeBlue Theme, I think you forgot to replace that in your download folder.

You are correct, theme developer forgot, but not replace - remove.
Currently you should have duplicated call of the js-offcanvas.pkgd.min.js file (line #33 and #34) at head.cshtml
Thank you for notification. Fixed and updated.
Best regards,
Tomasz
GrandNode Team
0
back to top
Filters