Commits

Sean Wilkinson committed 2f69aee

Quick patch for the "snapshot" script

Comments (0)

Files changed (1)

share/snapshot.js

 //      ~/Library/Application\ Support/Ofi\ Labs/PhantomJS/ .
 //
 //                                                      ~~ (c) SRW, 19 Sep 2012
-//                                                  ~~ last updated 10 Feb 2013
+//                                                  ~~ last updated 13 Feb 2013
 
 (function (global) {
     'use strict';
      // itself as a trigger to render the page as a rasterized image.
         global.console.log('Rasterizing to "' + output + '" ...');
         page.render(output);
+        global.console.log(message);
         global.console.log('Done.');
         return phantom.exit();
     };
     page.open(address, function f(status) {
      // This function will be executed by PhantomJS.
         if (status !== 'success') {
-            global.console.log('Unable to load "' + address + '".');
+            //global.console.log('Unable to load "' + address + '".');
             return phantom.exit(1);
         }
         global.console.log('Page has loaded ...');
                 return;
             }
             window.QM.box = 'hi-mom';
-            window.console.log('`QM.box` === ' + window.QM.box + ' :-)');
+            window.setTimeout(function () {
+             // I was having timing issues, so I added this function ...
+                window.console.log('`QM.box` === ' + window.QM.box + ' :-)');
+                return;
+            }, 1000);
             return;
         });
         return;