You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above solution was not 100% successful in resolving the issue. Using the method below is the recommended solution for adding JS files to the page.
WebTemplateModel.HTMLBodyElements.Add(scriptTag)
In addition to the code above, in the JS file I implemented the following code as the JS file was sometimes loading after the wb-ready.wb event has already fired.
function SetOverride() {
// code to execute after wb-ready.wb event
}
if (wb.isReady) {
SetOverride();
}
else {
$(document).on("wb-ready.wb", function () {
SetOverride();
});
}
A solution has been presented (ported from https://gccode.ssc-spc.gc.ca/iitb-dgiit/sds/GOCWebTemplates/DotNetTemplates/-/issues/454):
The text was updated successfully, but these errors were encountered: