added resize observer polyfill

This commit is contained in:
sairaj mote 2022-07-20 22:58:36 +05:30
parent 27797ab2a9
commit e6f9284034
2 changed files with 2 additions and 1 deletions

View File

@ -1395,7 +1395,7 @@ customElements.define('sm-popup', class extends HTMLElement {
}
}
});
resizeObserver.observe(this);
this.resizeObserver.observe(this);
this.mutationObserver = new MutationObserver(entries => {
this.updateFocusableList()

View File

@ -16,6 +16,7 @@
rel="stylesheet">
<script src="purify.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/fuse.js@6.4.6" defer></script>
<script src="https://cdn.jsdelivr.net/npm/resize-observer-polyfill@1.5.1/dist/ResizeObserver.min.js"></script>
<script id="floGlobals">
/* Constants for FLO blockchain operations !!Make sure to add this at begining!! */
const floGlobals = {