From 1b226b0b61b0ee8ecefc743d36a24c125023ef0f Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 25 Sep 2014 19:49:02 +0200 Subject: log loaded scripts --- itjs.php | 1 + 1 file changed, 1 insertion(+) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index 9b1788f..32f3a16 100644 --- a/itjs.php +++ b/itjs.php @@ -62,6 +62,7 @@ else if (it::match('\.htc$', $file)) } else if (!it::match('\.html$', $file)) { + $data .= "\nwindow.it_gotjs = (window.it_gotjs ? window.it_gotjs : '') + '." . it::match('\w+', basename($file)) . "';\n"; $charset = ini_get('default_charset') ?: 'iso-8859-1'; header("Content-Type: application/x-javascript; charset=$charset"); } -- cgit v1.2.3