From ff300c57cbf2b8d4937177b4a0147b47133cad1f Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Fri, 22 May 2020 17:19:10 +0200 Subject: [PATCH] minor fix on Preview --- Preview/build/debug/main.js | 10 +++++----- Preview/build/debug/package.json | 2 +- Preview/build/release/Preview.zip | Bin 1214179 -> 1214218 bytes Preview/main.coffee | 10 +++++----- Preview/package.json | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Preview/build/debug/main.js b/Preview/build/debug/main.js index 62b4600..35f114f 100644 --- a/Preview/build/debug/main.js +++ b/Preview/build/debug/main.js @@ -203,13 +203,13 @@ return this.renderPDFPages(n + 1, scale, recursive).then(function() { return resolve(); }).catch(function(e) { - return reject(e); + return reject(__e(e)); }); } else { return resolve(); } }).catch(function(e) { - return reject(e); + return reject(__e(e)); }); }); } @@ -226,13 +226,13 @@ $(this.txtpage).val("1"); return resolve(); }).catch(function(e) { - return reject(e); + return reject(__e(e)); }); }).catch(function(e) { - return reject(e); + return reject(__e(e)); }); }).catch(function(e) { - return reject(e); + return reject(__e(e)); }); })).catch((e) => { return this.error(__("Unable to view file: {0}", this.currfile.path), e); diff --git a/Preview/build/debug/package.json b/Preview/build/debug/package.json index d7ba2de..0758eb3 100644 --- a/Preview/build/debug/package.json +++ b/Preview/build/debug/package.json @@ -6,7 +6,7 @@ "author": "Xuan Sang LE", "email": "xsang.le@gmail.com" }, - "version":"0.0.3-a", + "version":"0.0.4-a", "category":"Utils", "iconclass":"fa fa-eye", "mimes":["[^\/]*/.*pdf", "image/.*"] diff --git a/Preview/build/release/Preview.zip b/Preview/build/release/Preview.zip index f712249479d6ba31fb76ffa03435b85d5e90eadb..52115c9fb070524f3f680ae6363ff592c408ff39 100644 GIT binary patch delta 740 zcmaFd>($lgB_H6;%)-S00+vRQ+JgepL?`6R4{B zoof3#RYo9Y0%B$$W&vVWAZFYCPL=)BeXwix-8*Tm$;iL}!n`2YO#i~lae>if`cXEH zJg|!N4S(6c$8#}&Fds-oyE{7v5OV@C7Z7s;F%J;)0x=&D^8>K}5DRX1XBXm20Gq)( z|H;f-vJ4C$%nmYRduF=O8`)TF!3&f|0{X?t8L7FcdKo3TIRV~`Od{ZbhC~c{@FTRn z0Y;Vn^bM^-qV*sv&|?Fk&S+^_vHq)$ delta 789 zcmeC`^LpItB^Th$%)-S00#~MP4ai(yzU~k+0|N+i1I0GVUuPBpNeKSku~rW#0K%L= zJeixt5iGI4_ULp276t|o<^W1;PGoUn0n6yjHrXrvmz@EG*+DWpIDSd8q-t7oO?O<$ zA~pSO8Kd}g14a(k$rt2=C(qI4o&IADqrl_|N&?dz*jU)Pic+&ulS?#!8m0@@u!~HO zw_#_WT&u>rIbZo6Bf^}?1*(ROsnZSDGD=OCS;vaofM#yBc5XFBAZ7w$W*}w(Vpbq# z+s>`V{^>s0)s0Qjs+x=p3?R${boF#0HjWF7#?v3OapZv&q;L4k{ymkWD;RO#2k7AA#}Y4#$}MJql>SrUTzAyHl*nD1jipj zp93&Pa}zW3^pcB<(Y2w+Ekf5cU?Q0A*d`)zIyKpWI#bg0%JYk|Q;UF_(X~Q?*8~y12)*9vLJUdidRYbO0p6^jpa-T*c7_&U KTzj?(0eJu@`o8l3 diff --git a/Preview/main.coffee b/Preview/main.coffee index 4260efa..d394b79 100644 --- a/Preview/main.coffee +++ b/Preview/main.coffee @@ -154,10 +154,10 @@ class Preview extends this.OS.GUI.BaseApplication if recursive @renderPDFPages n + 1, scale, recursive .then () -> resolve() - .catch (e) -> reject e + .catch (e) -> reject __e e else resolve() - .catch (e) -> reject e + .catch (e) -> reject __e e renderPDF: () -> @load new Promise (resolve, reject) => @@ -170,9 +170,9 @@ class Preview extends this.OS.GUI.BaseApplication .then () => $(@txtpage).val("1") resolve() - .catch (e) -> reject e - .catch (e) -> reject e - .catch (e) -> reject e + .catch (e) -> reject __e e + .catch (e) -> reject __e e + .catch (e) -> reject __e e .catch (e) => @error __("Unable to view file: {0}", @currfile.path), e renderSVG: () -> diff --git a/Preview/package.json b/Preview/package.json index d7ba2de..0758eb3 100644 --- a/Preview/package.json +++ b/Preview/package.json @@ -6,7 +6,7 @@ "author": "Xuan Sang LE", "email": "xsang.le@gmail.com" }, - "version":"0.0.3-a", + "version":"0.0.4-a", "category":"Utils", "iconclass":"fa fa-eye", "mimes":["[^\/]*/.*pdf", "image/.*"]