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?
error on script.js
Monday, November 25, 2024 8:27:41 PM
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.
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
Sepehr wrote:
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.
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
Tomasz
GrandNode Team
0