nsinject.js
authorAlan Knowles <alan@roojs.com>
Mon, 24 Sep 2012 05:03:04 +0000 (13:03 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 24 Sep 2012 05:03:04 +0000 (13:03 +0800)
nsinject.js

index 240dec3..60892bf 100644 (file)
@@ -113,8 +113,14 @@ NS = {
         this.id = id;
         var timeout = 10;
         
+        console.log("document.location" + document.location);
         console.log("document.location" + document.location);
         
+        if (!(window.location + '').match(/netsuite/)) {
+            // try
+            window.location = "https://system.netsuite.com/app/common/search/searchresults.csv";
+            return;
+        }
         
         // we really just want to send a series of download requests..
         //https://system.netsuite.com/app/reporting/reportrunner.nl?reporttype=REGISTER&acctid=403