Skip to content

Commit 77228fa

Browse files
author
Andrzej Jurzak
committed
1 parent 38a38fd commit 77228fa

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎src/service.ts‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,14 @@ export class Service implements IService {
349349
delete powerBiElement.powerBiEmbed;
350350
/** Removes the iframe from the element. */
351351
const iframe = element.querySelector('iframe');
352-
if (iframe) {
353-
iframe.remove();
354-
}
352+
if (iframe) {
353+
if (iframe.remove !== undefined) {
354+
iframe.remove();
355+
} else {
356+
// workaround for IE: Unhandled rejection TypeError: object doesn't support property or method 'remove'
357+
iframe.parentElement.removeChild(iframe);
358+
}
359+
}
355360
}
356361

357362
/**

0 commit comments

Comments
 (0)