fix: add document.body guard
This commit is contained in:
parent
9f7088e943
commit
1c7835ff45
1 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
if (!document.body) return;
|
||||||
|
|
||||||
const observer = new MutationObserver(() => {
|
const observer = new MutationObserver(() => {
|
||||||
const overlay = document.querySelector('.payok__wrap');
|
const overlay = document.querySelector('.payok__wrap');
|
||||||
if (!overlay) return;
|
if (!overlay) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue