fix globals for Wappalyzer detection

This commit is contained in:
Pig Fang 2020-05-06 11:45:01 +08:00
parent ca8d743870
commit b4b75151fd

View File

@ -17,6 +17,6 @@ class SerializeGlobals
'i18n' => new stdClass(),
'extra' => [],
];
$event->addContent('<script>const blessing = '.json_encode($blessing).';</script>');
$event->addContent('<script>window.blessing = '.json_encode($blessing).';</script>');
}
}