mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:14:40 -04:00
Prevent PhantomJS error loop
This commit is contained in:
parent
f2d59f098f
commit
f82eecf2fb
@ -117,8 +117,9 @@
|
|||||||
try {
|
try {
|
||||||
return getPDFString(refreshPDFCB, force);
|
return getPDFString(refreshPDFCB, force);
|
||||||
} catch (exception) {
|
} catch (exception) {
|
||||||
if (location.href.indexOf('/view/')) {
|
var href = location.href;
|
||||||
var url = location.href.replace('/view/', '/download/') + '?base64=true';
|
if (href.indexOf('/view/') && href.indexOf('phantomjs') == -1) {
|
||||||
|
var url = href.replace('/view/', '/download/') + '?base64=true';
|
||||||
$.get(url, function(result) {
|
$.get(url, function(result) {
|
||||||
refreshPDFCB(result);
|
refreshPDFCB(result);
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user