Rev 963 | Rev 1149 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 963 | Rev 1116 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | // We do this stuff to avoid that the client includes an external JavaScript from polyfill.io, |
20 | // We do this stuff to avoid that the client includes an external JavaScript from polyfill.io, |
21 | // since some users might have a problem with that (in regards privacy of their IP address etc.) |
21 | // since some users might have a problem with that (in regards privacy of their IP address etc.) |
22 | // So, the OIDplus webserver will act as proxy. |
22 | // So, the OIDplus webserver will act as proxy. |
23 | 23 | ||
24 | // see https://polyfill.io/v3/url-builder/ |
24 | // see https://polyfill.io/v3/url-builder/ |
25 | define('REQUIRED_POLYFILLS', array( |
25 | const REQUIRED_POLYFILLS = array( |
26 | // Internet Explorer for various AJAX calls |
26 | // Internet Explorer for various AJAX calls |
27 | 'fetch', |
27 | 'fetch', |
28 | 'URL', |
28 | 'URL', |
29 | 29 | ||
30 | // Internet Explorer for OIDplusPagePublicWhois.js, OIDplusPageAdminSoftwareUpdate.js, and OIDplusPageAdminColors.js |
30 | // Internet Explorer for OIDplusPagePublicWhois.js, OIDplusPageAdminSoftwareUpdate.js, and OIDplusPageAdminColors.js |
31 | 'String.prototype.includes', |
31 | 'String.prototype.includes', |
32 | 32 | ||
33 | // Internet Explorer for TinyMCE if it is included inside oidplus.min.js.php ( https://github.com/tinymce/tinymce/blob/5c1702a119e683f93e03ecc2231f11d17ce57395/modules/tinymce/src/core/main/ts/api/EditorManager.ts#L271 ) |
33 | // Internet Explorer for TinyMCE if it is included inside oidplus.min.js.php ( https://github.com/tinymce/tinymce/blob/5c1702a119e683f93e03ecc2231f11d17ce57395/modules/tinymce/src/core/main/ts/api/EditorManager.ts#L271 ) |
34 | 'document.currentScript' |
34 | 'document.currentScript' |
35 | )); |
35 | ); |
36 | 36 | ||
37 | define('MINIFY_POLYFILL', true); // TODO: put into baseconfig? |
37 | const MINIFY_POLYFILL = true; // TODO: put into baseconfig? |
38 | 38 | ||
39 | define('POLYFILL_CACHE_MAX_AGE', 24*60*60); // 1 day, TODO: put into baseconfig? |
39 | const POLYFILL_CACHE_MAX_AGE = 24 * 60 * 60; // 1 day, TODO: put into baseconfig? |
40 | 40 | ||
41 | # --- |
41 | # --- |
42 | 42 | ||
43 | require_once __DIR__ . '/includes/functions.inc.php'; |
43 | require_once __DIR__ . '/includes/functions.inc.php'; |
44 | 44 |