BrowserView.js
authorAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 07:52:52 +0000 (15:52 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Apr 2016 07:52:52 +0000 (15:52 +0800)
BrowserView.js

index 21ea292..7f7d177 100644 (file)
@@ -305,12 +305,15 @@ BrowserView = new GType({
                               
             }
             
-            
+            if (current_url.match('/forbes.com')) {
+                v
+            }
             
            
             print("Delay:" + BrowserSettings.delay);
          
-            GLib.timeout_add(GLib.PRIORITY_DEFAULT, BrowserSettings.delay *1, function() {
+         
+            var realprint = function() {
                 
                 try {
                     
@@ -362,7 +365,10 @@ BrowserView = new GType({
                     print("error occured");
                     print(JSON.stringify(e));
                 }
-            });
+            };
+         
+         
+            GLib.timeout_add(GLib.PRIORITY_DEFAULT, BrowserSettings.delay *1, realprint);
         }