I’m using the following code to load a custom builder:
`
Mautic.launchCustomBuilder = function (formName, actionName,elem) {
var currentLink = mQuery(elem);
var currentActiveTemplate = currentLink.attr(‘data-theme-beefree’);
console.log(‘custom builder ‘,currentActiveTemplate);
var builderUrl = (mQuery(’#builder_url’).val()).replace(‘s/emails/’,‘s/beefree/email/’)+’?template=’ + currentActiveTemplate;
console.log(‘builder url ‘,builderUrl);
if ( (mQuery(’#builder_url’).val()).indexOf(‘pages’) !== -1) {
builderUrl = (mQuery(’#builder_url’).val()).replace(‘s/pages/’,‘s/beefree/page/’)+’?template=’ + currentActiveTemplate;
}
Mautic.loadNewWindowTemp({
"windowUrl": builderUrl+"&t="+new Date().getTime(),
"popupName": "beefreePopup"
});
}`
Out of nowhere, it stopped recognizing the function “loadNewWindowTemp”, throwing the following error:
Uncaught TypeError: Mautic.loadNewWindowTemp is not a function
at Object.Mautic.launchCustomBuilder (VM6338 builder.js:11:12)
at HTMLAnchorElement.onclick (VM7516 3:1:8)
Can someone assist me with this error?