twingle/twingle/content twingle.js,1.7,1.8

[email protected] Mon, 10 Mar 2003 04:14:22 -0700 (MST)
Newsgroups gmane.comp.cms.oscom.twingle.cvs
Message-ID <[email protected]>
Update of /cvs/root/twingle/twingle/content
In directory alpha.oscom.org:/tmp/cvs-serv24808

Modified Files:
	twingle.js 
Log Message:
ssue a warning, when jslib is not installed


Index: twingle.js
===================================================================
RCS file: /cvs/root/twingle/twingle/content/twingle.js,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** twingle.js	10 Mar 2003 10:45:45 -0000	1.7
--- twingle.js	10 Mar 2003 11:14:20 -0000	1.8
***************
*** 13,16 ****
--- 13,17 ----
  {
      /* First let's get the sites datasource set */
+    
      initTwingleProfileDir();
      initNavigator();
***************
*** 20,25 ****
  function initTwingleProfileDir () 
  {
!     var fu = new FileUtils(); 
      var du = new DirUtils;
      const localsitepath = "chrome://twingle/content/sampledata";
      var localsitechromepath = fu.chromeToPath(localsitepath);
--- 21,33 ----
  function initTwingleProfileDir () 
  {
! 
! 	try {   
!     	var fu = new FileUtils(); 
!     } 
!     catch (e) {
!     	alert ("Twingle depends on jslib. Please install it from http://jslib.mozdev.org");
!     }
      var du = new DirUtils;
+   
      const localsitepath = "chrome://twingle/content/sampledata";
      var localsitechromepath = fu.chromeToPath(localsitepath);