PHP 8.2.31
Preview: tour-helpers.js Size: 461 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/HelpCenter/lib/tour-helpers.js

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);
	});
};

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
992 B lrw-r--r-- 2025-02-14 00:15:08
Edit Download
461 B lrw-r--r-- 2024-03-14 20:40:46
Edit Download
79 B lrw-r--r-- 2025-08-27 17:47:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).