Get the navigator.gss_eap object to appear on firefox
[gssweb.git] / xpi / data / nav.gss.js
similarity index 97%
rename from xpi/lib/navigator.gss.js
rename to xpi/data/nav.gss.js
index a2ed28c..84a8aa1 100644 (file)
 
 console.log('Loading navigator.gss.js - #9');
 
+navigator.generateNonce = function() {
+  // TODO: Make sure that we don't have a collision!
+  // Random integer in the range [0..(2^32-1)]
+  return Math.floor(Math.random() * ( 4294967295 )) ;
+}
+
+
+
 /* This file gets injected into the web page verbatim */
 
 var GSSEap = (function () 
@@ -299,4 +307,4 @@ var GSSEap = (function ()
     return GSSEap;
 })();
 
-navigator.gss_eap = GSSEap;
+