PHP 8.2.31
Preview: util.js Size: 236 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Assist/util/util.js

export const maybeHttps = (url) => {
	try {
		const transformed = new URL(url);
		if (window.location.protocol === 'https:') {
			transformed.protocol = 'https:';
		}
		return transformed.toString();
	} catch (_e) {
		return url;
	}
};

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
747 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download
236 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download

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