Commit 93787f2e authored by Dan Notestein's avatar Dan Notestein
Browse files

Merge branch 'fix-iframe-validator' into 'develop'

fix iframe validator

See merge request !134
parents c6f784d3 931c9739
......@@ -193,6 +193,11 @@ function getIframeDimensions(large) {
* @returns { boolean | { providerId: string, sandboxAttributes: string[], useSandbox: boolean, validUrl: string }}
*/
export function validateIframeUrl(url, large = true) {
if (!url) {
return {
validUrl: false,
};
}
for (let pi = 0; pi < supportedProviders.length; pi += 1) {
const provider = supportedProviders[pi];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment