Looks like you have taken a wrong turn.....Dont worry... it happens to the best of us.
export const waitUntilExists = (selector) => { return new Promise((resolve) => { const interval = setInterval(() => { if (document.querySelector(selector)) { clearInterval(interval); resolve(); } }, 50); }); }; export const waitUntilGone = (selector) => { return new Promise((resolve) => { const interval = setInterval(() => { if (!document.querySelector(selector)) { clearInterval(interval); resolve(); } }, 50); }); }; /** * Forminator Gutenberg functions. * * @package Forminator */ if ( ! defined( 'ABSPATH' ) ) { die(); } /** * Instance of Gutenberb Integration * * @since 1.0 Gutenberg Integration * * @return Forminator_Gutenberg */ function forminator_gutenberg() { return Forminator_Gutenberg::get_instance(); }
Click one of our contacts below to chat on WhatsApp