From 1daa538497079919cf8538c188f264effbfdae89 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 6 May 2021 16:24:41 -1000 Subject: [PATCH] (NFC) Add comments about keeping two items sync'd --- Civi/Angular/AngularLoader.php | 1 + Civi/Angular/Page/Modules.php | 1 + 2 files changed, 2 insertions(+) diff --git a/Civi/Angular/AngularLoader.php b/Civi/Angular/AngularLoader.php index c887e9d13f..2df7997ce5 100644 --- a/Civi/Angular/AngularLoader.php +++ b/Civi/Angular/AngularLoader.php @@ -155,6 +155,7 @@ class AngularLoader { $headOffset = 0; $config = \CRM_Core_Config::singleton(); if ($config->debug) { + // FIXME: The `resetLocationProviderHashPrefix.js` has to stay in sync with `\Civi\Angular\Page\Modules::buildAngularModules()`. $res->addScriptFile('civicrm', 'ang/resetLocationProviderHashPrefix.js', 101, $this->getRegion(), FALSE); foreach ($moduleNames as $moduleName) { foreach ($this->angular->getResources($moduleName, 'css', 'cacheUrl') as $url) { diff --git a/Civi/Angular/Page/Modules.php b/Civi/Angular/Page/Modules.php index 83a72da5cc..39a2e1ccfa 100644 --- a/Civi/Angular/Page/Modules.php +++ b/Civi/Angular/Page/Modules.php @@ -86,6 +86,7 @@ class Modules extends \CRM_Core_Page { $moduleNames = $page->parseModuleNames($event->params['modules'] ?? NULL, $angular); $event->mimeType = 'application/javascript'; $files = array_merge( + // FIXME: The `resetLocationProviderHashPrefix.js` has to stay in sync with `\Civi\Angular\AngularLoader::load()`. [\Civi::resources()->getPath('civicrm', 'ang/resetLocationProviderHashPrefix.js')], $angular->getResources($moduleNames, 'js', 'path') ); -- 2.25.1