Adds Google platform.js script to index.php (#882)

This commit is contained in:
Maximiliano Redigonda 2020-08-25 16:08:38 -03:00 committed by GitHub
parent 68c3975ea4
commit d3638787e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@
globalIndexPath = "<?=$path ?>";
showLogs = false;
</script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<?php if (preg_match('~MSIE|Internet Explorer~i', $_SERVER['HTTP_USER_AGENT']) || (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0; rv:11.0') !== false)): ?>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=String.prototype.startsWith,Array.from,Array.prototype.fill,Array.prototype.keys,Array.prototype.find,Array.prototype.findIndex,Array.prototype.includes,String.prototype.repeat,Number.isInteger,Promise&flags=gated"></script>
<?php endif; ?>