(NFC) Add comments about keeping two items sync'd
authorTim Otten <totten@civicrm.org>
Fri, 7 May 2021 02:24:41 +0000 (16:24 -1000)
committerTim Otten <totten@civicrm.org>
Fri, 7 May 2021 02:24:41 +0000 (16:24 -1000)
Civi/Angular/AngularLoader.php
Civi/Angular/Page/Modules.php

index c887e9d13f477a0c0df566e3bee243e03a408e6b..2df7997ce5ab1f6ec49d61324aa33b13ec75064e 100644 (file)
@@ -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) {
index 83a72da5cc5e8e10afb4522948bcaa668d9c23aa..39a2e1ccfa8aba54ed83dbff832c593aa3dd970d 100644 (file)
@@ -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')
         );