]> source.dussan.org Git - nextcloud-server.git/commitdiff
Load base64 polyfill in IE and friends
authorVincent Petry <pvince81@owncloud.com>
Mon, 14 Dec 2015 16:50:33 +0000 (17:50 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 14 Dec 2015 16:50:33 +0000 (17:50 +0100)
lib/private/template.php

index d794dacac23366c5210f934afe9a4a87180ccf3b..04d6a906880b2e313f75d3168319799ce3ac4644 100644 (file)
@@ -162,6 +162,8 @@ class OC_Template extends \OC\Template\Base {
                        }
 
                        if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE])) {
+                               // polyfill for btoa/atob for IE friends
+                               OC_Util::addVendorScript('base64/base64');
                                // shim for the davclient.js library
                                \OCP\Util::addScript('files/iedavclient');
                        }