From 0c8253bb13d5e0aee8b2360634d660d21336b968 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 22 Dec 2022 23:41:54 +0100 Subject: [PATCH] Remove some obsolete checks from chessboard.js. --- www/js/chessboard-0.3.0.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/www/js/chessboard-0.3.0.js b/www/js/chessboard-0.3.0.js index 851de8f..756cb13 100644 --- a/www/js/chessboard-0.3.0.js +++ b/www/js/chessboard-0.3.0.js @@ -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; } -- 2.39.5