Skip to content

Commit bbf2c07

Browse files
author
submarine-launched
authored
Merge pull request microsoft#365 from SanoLitch/isRdl-fix
Update util.ts
2 parents 34a8995 + 608414c commit bbf2c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export async function isSavedInternal(hpm: HttpPostMessage, uid: string, content
174174
* @returns {boolean}
175175
*/
176176
export function isRDLEmbed(embedUrl: string): boolean {
177-
return embedUrl.toLowerCase().indexOf("/rdlembed?") >= 0;
177+
return embedUrl && embedUrl.toLowerCase().indexOf("/rdlembed?") >= 0;
178178
}
179179

180180
/**

0 commit comments

Comments
 (0)