BrowserWindow.bjs
[app.webkitpdf] / BrowserWindow.vala
index 08643e8..119623c 100644 (file)
@@ -55,10 +55,10 @@ public class BrowserWindow : Object
                
                print("loading url %s\n",blog); 
                this.view.el.load_uri(blog);
-               
+                
                // if we have not finished in 25 seconds
                // call printit...
-               var cd = 25;
+               var cd = webkitpdf.opt_delay > 25 ? webkitpdf.opt_delay : 25;
                  GLib.Timeout.add_seconds(1, () => { 
                        cd--;
                        print("timeout 25 seconds :%d", cd);