HEX
Server: Apache
System: Linux 244.240.109.208.host.secureserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: icsla (1002)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/icsla/public_html/wp-content/plugins/popup-maker/classes/Controllers/Debug.php
<?php
/**
 * Debug class
 *
 * @package   PopupMaker
 * @copyright Copyright (c) 2024, Code Atlantic LLC
 */

namespace PopupMaker\Controllers;

use PopupMaker\Plugin\Controller;

defined( 'ABSPATH' ) || exit;

/**
 * Debug controller class.
 *
 * @package PopupMaker\Controllers\Debug
 */
class Debug extends Controller {

	/**
	 * Initialize admin controller.
	 */
	public function init() {
		if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {
			return;
		}

		if ( ! defined( 'POPUP_MAKER_DEBUG' ) || ! POPUP_MAKER_DEBUG ) {
			return;
		}

		add_action( 'admin_head', [ $this, 'admin_head' ], 0 );
	}

	/**
	 * Enqueue admin assets.
	 */
	public function admin_head() {
		// phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript ?>
		<script crossOrigin="anonymous" src="//unpkg.com/react-scan/dist/auto.global.js" />
		<?php
	}
}