Commit 4ff2e815 authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

added polyfill for TextEncoder

Signed-off-by: default avatarSascha Pfeiffer <[email protected]>
parent bfbe4f45
......@@ -114,6 +114,7 @@ var build = function(build_path, type) {
"src/common/data/js/lib/jquery.min.js",
"src/common/data/js/lib/client.min.js",
"src/common/data/js/lib/FileSaver.min.js",
"src/common/data/js/lib/text-decoder-polyfill.min.js",
"src/common/data/js/lib/datatables.min.js",
"src/common/data/js/lib/snap.min.js",
"src/common/data/js/lib/jquery-ui.min.js",
......
......@@ -106,6 +106,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -33,6 +33,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -339,6 +339,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -81,6 +81,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -213,6 +213,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -106,6 +106,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -423,6 +423,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
(function(l){function m(b){b=void 0===b?"utf-8":b;if("utf-8"!==b)throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+b+"') is invalid.");}function k(b,a){b=void 0===b?"utf-8":b;a=void 0===a?{fatal:!1}:a;if("utf-8"!==b)throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+b+"') is invalid.");if(a.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.");}if(l.TextEncoder&&l.TextDecoder)return!1;
Object.defineProperty(m.prototype,"encoding",{value:"utf-8"});m.prototype.encode=function(b,a){a=void 0===a?{stream:!1}:a;if(a.stream)throw Error("Failed to encode: the 'stream' option is unsupported.");a=0;for(var h=b.length,f=0,c=Math.max(32,h+(h>>1)+7),e=new Uint8Array(c>>3<<3);a<h;){var d=b.charCodeAt(a++);if(55296<=d&&56319>=d){if(a<h){var g=b.charCodeAt(a);56320===(g&64512)&&(++a,d=((d&1023)<<10)+(g&1023)+65536)}if(55296<=d&&56319>=d)continue}f+4>e.length&&(c+=8,c*=1+a/b.length*2,c=c>>3<<3,
g=new Uint8Array(c),g.set(e),e=g);if(0===(d&4294967168))e[f++]=d;else{if(0===(d&4294965248))e[f++]=d>>6&31|192;else if(0===(d&4294901760))e[f++]=d>>12&15|224,e[f++]=d>>6&63|128;else if(0===(d&4292870144))e[f++]=d>>18&7|240,e[f++]=d>>12&63|128,e[f++]=d>>6&63|128;else continue;e[f++]=d&63|128}}return e.slice(0,f)};Object.defineProperty(k.prototype,"encoding",{value:"utf-8"});Object.defineProperty(k.prototype,"fatal",{value:!1});Object.defineProperty(k.prototype,"ignoreBOM",{value:!1});k.prototype.decode=
function(b,a){a=void 0===a?{stream:!1}:a;if(a.stream)throw Error("Failed to decode: the 'stream' option is unsupported.");b=new Uint8Array(b);a=0;for(var h=b.length,f=[];a<h;){var c=b[a++];if(0===c)break;if(0===(c&128))f.push(c);else if(192===(c&224)){var e=b[a++]&63;f.push((c&31)<<6|e)}else if(224===(c&240)){e=b[a++]&63;var d=b[a++]&63;f.push((c&31)<<12|e<<6|d)}else if(240===(c&248)){e=b[a++]&63;d=b[a++]&63;var g=b[a++]&63;c=(c&7)<<18|e<<12|d<<6|g;65535<c&&(c-=65536,f.push(c>>>10&1023|55296),c=56320|
c&1023);f.push(c)}}return String.fromCharCode.apply(null,f)};l.TextEncoder=m;l.TextDecoder=k})("undefined"!==typeof window?window:"undefined"!==typeof global?global:this);
......@@ -170,6 +170,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -78,6 +78,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -294,6 +294,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -71,6 +71,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -130,6 +130,7 @@
<script src="js/lib/chart.min.js" type="text/javascript"></script>
<script src="js/lib/client.min.js" type="text/javascript"></script>
<script src="js/lib/FileSaver.min.js" type="text/javascript"></script>
<script src="js/lib/text-decoder-polyfill.min.js" type="text/javascript"></script>
<script src="js/lib/jquery.min.js" type="text/javascript"></script>
<script src="js/lib/datatables.min.js" type="text/javascript"></script>
<script src="js/lib/snap.min.js" type="text/javascript"></script>
......
......@@ -124,6 +124,7 @@ self.addEventListener('install', function(event) {
'./js/lib/chart.min.js',
'./js/lib/client.min.js',
'./js/lib/FileSaver.min.js',
'./js/lib/text-decoder-polyfill.min.js',
'./js/lib/jquery.min.js',
'./js/lib/datatables.min.js',
'./js/lib/snap.min.js',
......
......@@ -14,6 +14,7 @@
"../src/common/data/js/lib/jquery.min.js",
"../src/common/data/js/lib/client.min.js",
"../src/common/data/js/lib/FileSaver.min.js",
"../src/common/data/js/lib/text-decoder-polyfill.min.js",
"../src/common/data/js/lib/datatables.min.js",
"../src/common/data/js/lib/snap.min.js",
"../src/common/data/js/lib/jquery-ui.min.js",
......
......@@ -14,6 +14,7 @@
"../src/common/data/js/lib/jquery.min.js",
"../src/common/data/js/lib/client.min.js",
"../src/common/data/js/lib/FileSaver.min.js",
"../src/common/data/js/lib/text-decoder-polyfill.min.js",
"../src/common/data/js/lib/datatables.min.js",
"../src/common/data/js/lib/snap.min.js",
"../src/common/data/js/lib/jquery-ui.min.js",
......
......@@ -14,6 +14,7 @@
"../src/common/data/js/lib/jquery.min.js",
"../src/common/data/js/lib/client.min.js",
"../src/common/data/js/lib/FileSaver.min.js",
"../src/common/data/js/lib/text-decoder-polyfill.min.js",
"../src/common/data/js/lib/datatables.min.js",
"../src/common/data/js/lib/snap.min.js",
"../src/common/data/js/lib/jquery-ui.min.js",
......
......@@ -14,6 +14,7 @@
"../src/common/data/js/lib/jquery.min.js",
"../src/common/data/js/lib/client.min.js",
"../src/common/data/js/lib/FileSaver.min.js",
"../src/common/data/js/lib/text-decoder-polyfill.min.js",
"../src/common/data/js/lib/datatables.min.js",
"../src/common/data/js/lib/snap.min.js",
"../src/common/data/js/lib/jquery-ui.min.js",
......
......@@ -70,6 +70,8 @@ wget https://raw.githubusercontent.com/jtblin/angular-chart.js/master/dist/angul
wget https://raw.githubusercontent.com/openpgpjs/openpgpjs/v3.0.11/dist/openpgp.min.js -O src/common/data/js/lib/openpgp.min.js
wget https://raw.githubusercontent.com/openpgpjs/openpgpjs/v3.0.11/dist/openpgp.worker.min.js -O src/common/data/js/lib/openpgp.worker.min.js
wget https://raw.githubusercontent.com/samthor/fast-text-encoding/master/text.min.js -O src/common/data/js/lib/text-decoder-polyfill.min.js
wget https://cdn.ravenjs.com/3.26.4/angular/raven.min.js -O src/common/data/js/lib/raven.min.js
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment