mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:44:29 -04:00
Temporariy change to work around Chrome 48 bug
This commit is contained in:
parent
b28c712a8e
commit
205c67a968
@ -98,7 +98,9 @@
|
||||
function refreshPDFCB(string) {
|
||||
if (!string) return;
|
||||
PDFJS.workerSrc = '{{ asset('js/pdf_viewer.worker.js') }}';
|
||||
if ({{ Auth::check() && Auth::user()->force_pdfjs ? 'false' : 'true' }} && (isFirefox || (isChrome && !isChrome48))) {
|
||||
var forceJS = {{ Auth::check() && Auth::user()->force_pdfjs ? 'false' : 'true' }};
|
||||
// Temporarily workaround for: https://code.google.com/p/chromium/issues/detail?id=574648
|
||||
if (forceJS && (isFirefox || (isChrome && (!isChrome48 || {{ isset($viewPDF) && $viewPDF ? 'true' : 'false' }})))) {
|
||||
$('#theFrame').attr('src', string).show();
|
||||
} else {
|
||||
if (isRefreshing) {
|
||||
|
@ -85,7 +85,7 @@
|
||||
|
||||
</script>
|
||||
|
||||
@include('invoices.pdf', ['account' => $invoice->client->account])
|
||||
@include('invoices.pdf', ['account' => $invoice->client->account, 'viewPDF' => true])
|
||||
|
||||
<p> </p>
|
||||
<p> </p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user