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