Browse Source

Imporve the cookieEnabled function

Dennis Hernández 10 years ago
parent
commit
e2ba92956a
1 changed files with 1 additions and 8 deletions
  1. 1 8
      src/bootstrap-table.js

+ 1 - 8
src/bootstrap-table.js

@@ -125,14 +125,7 @@
     };
     };
 
 
     var cookieEnabled = function (){
     var cookieEnabled = function (){
-        var cookieEnabled = (navigator.cookieEnabled) ? true : false;
-
-        if (typeof navigator.cookieEnabled === undefined && !cookieEnabled)
-        {
-            document.cookie = 'testcookie';
-            cookieEnabled = (document.cookie.indexOf('testcookie') !== -1) ? true : false;
-        }
-        return (cookieEnabled);
+        return (navigator.cookieEnabled) ? true : false;
     };
     };
 
 
     var setCookie = function (cookieName, sValue, vEnd, sPath, sDomain, bSecure) {
     var setCookie = function (cookieName, sValue, vEnd, sPath, sDomain, bSecure) {