]> git.sesse.net Git - remoteglot/commitdiff
Remove some obsolete checks from chessboard.js.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 22 Dec 2022 22:41:54 +0000 (23:41 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 22 Dec 2022 22:41:54 +0000 (23:41 +0100)
www/js/chessboard-0.3.0.js

index 851de8fc12eda325ed6233ffc20dfbfaee080172..756cb13be86d52ee28b2d14e33b2b3ff92527a19 100644 (file)
@@ -367,24 +367,6 @@ function checkDeps() {
     containerEl = containerElOrId;
   }
 
-  // JSON must exist
-  if (! window.JSON ||
-      typeof JSON.stringify !== 'function' ||
-      typeof JSON.parse !== 'function') {
-    window.alert('ChessBoard Error 1004: JSON does not exist. ' +
-      'Please include a JSON polyfill.\n\nExiting...');
-    return false;
-  }
-
-  // check for a compatible version of jQuery
-  if (! (typeof window.$ && $.fn && $.fn.jquery &&
-      compareSemVer($.fn.jquery, MINIMUM_JQUERY_VERSION) === true)) {
-    window.alert('ChessBoard Error 1005: Unable to find a valid version ' +
-      'of jQuery. Please include jQuery ' + MINIMUM_JQUERY_VERSION + ' or ' +
-      'higher on the page.\n\nExiting...');
-    return false;
-  }
-
   return true;
 }