FiboSearch compatibility

/** JS snippet from plugin author to remove dgwt_wcas from url on default
 ** WordPress search page to be compatible with Facet
 ** https://wordpress.org/support/topic/search-not-working-properly-6/#post-12724511
 ** Note: this should not be necessary anymore with FiboSearch v1.23.0.1+ which fixed the issues this snippet solves:
 ** https://wordpress.org/support/topic/incompatible-with-facetwp-3/#post-16644278
 
 **/
(function ($) {
    $(document).ready(function () {
		var $flags = $('[name="dgwt_wcas"]');
		
		if($flags.length){
		    $flags.remove();
		}
    });
})(jQuery);