From 8410ad9dc9a7dc5d27d2af5c410b7a3be07b57c0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 19 Oct 2014 19:37:25 +0300 Subject: [PATCH] fix #170 - Live PDF not rendered when using logo --- app/views/invoices/pdf.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/invoices/pdf.blade.php b/app/views/invoices/pdf.blade.php index 6369d0ca376c..d5f863582833 100644 --- a/app/views/invoices/pdf.blade.php +++ b/app/views/invoices/pdf.blade.php @@ -17,9 +17,11 @@ logoImages.imageLogoHeight3 = 81/2; @if (file_exists($account->getLogoPath())) + if (window.invoice) { invoice.image = "{{ HTML::image_data($account->getLogoPath()) }}"; invoice.imageWidth = {{ $account->getLogoWidth() }}; invoice.imageHeight = {{ $account->getLogoHeight() }}; + } @endif var NINJA = NINJA || {};