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
{{ message }}
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
The fix for the Godaddy HTML element is below. We need to use a valid URL instead of the "about" option.
function getLocation(url){
if (!url) {
throw new Error("url is undefined or empty");
}
if (/^file/.test(url)) {
throw new Error("The file:// protocol is not supported");
}
if (/^about/.test(url)) {
url = window.top.location.href.toLowerCase().match(reURI);
}
var m = url.toLowerCase().match(reURI);
var proto = m[2], domain = m[3], port = m[4] || "";
if ((proto == "http:" && port == ":80") || (proto == "https:" && port == ":443")) {
port = "";
}
return proto + "//" + domain + port;
}
This is for Godaddy specifically trying to update it's own iframe height dyanmically, otherwise a set height will be set on the iframe.
function _window_onMessage(event){
var origin = _getOrigin(event);
trace("received message '" + event.data + "' from " + origin);
if (typeof (event.data) == "string") {
if (origin == targetOrigin && event.data.substring(0, config.channel.length + 1) == config.channel + " ") {
pub.up.incoming(event.data.substring(config.channel.length + 1), origin);
}
}
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am getting an error in Godaddy, which I have never had an issue before. Below is the log output and the URL to the actual page.
https://okfadeawayhoops.com/exposure-testing
I believe the code is below
The text was updated successfully, but these errors were encountered: