webkitpdf.php
authorAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 05:27:23 +0000 (13:27 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Nov 2015 05:27:23 +0000 (13:27 +0800)
webkitpdf.php

index 5715f3c..8992ee6 100644 (file)
@@ -39,6 +39,9 @@ class WebkitPdf
         if (empty($xvfb)) {
             $this->h404("missing webkitpdf (compile it..)");
         }
+        // max delay 4 seconds.?
+        $delay = empty($_REQUEST['delay']) ? 1 : max(4,$_REQUEST['delay']);
+        
         
         
     }