| @@ -9,8 +9,9 @@ | ||
| 9 | 9 | defined('ABSPATH') || die('No direct access.'); |
| 10 | 10 | |
| 11 | 11 | use Extendify\Config; |
| 12 | 12 | use Extendify\HelpCenter\Controllers\RouterController; |
| 13 | +use Extendify\Mcp\Profile as McpProfile; | |
| 13 | 14 | use Extendify\HelpCenter\Controllers\SupportArticlesController; |
| 14 | 15 | use Extendify\HelpCenter\Controllers\TourController; |
| 15 | 16 | use Extendify\PartnerData; |
| 16 | 17 | |
| @@ -36,8 +37,12 @@ | ||
| 36 | 37 | * @return void |
| 37 | 38 | */ |
| 38 | 39 | public function loadGlobalScripts() |
| 39 | 40 | { |
| 41 | + if (McpProfile::isOwnScreen()) { | |
| 42 | + return; | |
| 43 | + } | |
| 44 | + | |
| 40 | 45 | $version = Config::$environment === 'PRODUCTION' ? Config::$version : uniqid(); |
| 41 | 46 | $scriptAssetPath = EXTENDIFY_PATH . 'public/build/' . Config::$assetManifest['extendify-help-center.php']; |
| 42 | 47 | $fallback = [ |
| 43 | 48 | 'dependencies' => [], |