Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: dom-ready.js
/******/ (() => { // webpackBootstrap
[0] Fix | Delete
/******/ "use strict";
[1] Fix | Delete
/******/ // The require scope
[2] Fix | Delete
/******/ var __webpack_require__ = {};
[3] Fix | Delete
/******/
[4] Fix | Delete
/************************************************************************/
[5] Fix | Delete
/******/ /* webpack/runtime/define property getters */
[6] Fix | Delete
/******/ (() => {
[7] Fix | Delete
/******/ // define getter functions for harmony exports
[8] Fix | Delete
/******/ __webpack_require__.d = (exports, definition) => {
[9] Fix | Delete
/******/ for(var key in definition) {
[10] Fix | Delete
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
[11] Fix | Delete
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
[12] Fix | Delete
/******/ }
[13] Fix | Delete
/******/ }
[14] Fix | Delete
/******/ };
[15] Fix | Delete
/******/ })();
[16] Fix | Delete
/******/
[17] Fix | Delete
/******/ /* webpack/runtime/hasOwnProperty shorthand */
[18] Fix | Delete
/******/ (() => {
[19] Fix | Delete
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
[20] Fix | Delete
/******/ })();
[21] Fix | Delete
/******/
[22] Fix | Delete
/************************************************************************/
[23] Fix | Delete
var __webpack_exports__ = {};
[24] Fix | Delete
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
[25] Fix | Delete
/* harmony export */ "default": () => (/* binding */ domReady)
[26] Fix | Delete
/* harmony export */ });
[27] Fix | Delete
/**
[28] Fix | Delete
* @typedef {() => void} Callback
[29] Fix | Delete
*
[30] Fix | Delete
* TODO: Remove this typedef and inline `() => void` type.
[31] Fix | Delete
*
[32] Fix | Delete
* This typedef is used so that a descriptive type is provided in our
[33] Fix | Delete
* automatically generated documentation.
[34] Fix | Delete
*
[35] Fix | Delete
* An in-line type `() => void` would be preferable, but the generated
[36] Fix | Delete
* documentation is `null` in that case.
[37] Fix | Delete
*
[38] Fix | Delete
* @see https://github.com/WordPress/gutenberg/issues/18045
[39] Fix | Delete
*/
[40] Fix | Delete
[41] Fix | Delete
/**
[42] Fix | Delete
* Specify a function to execute when the DOM is fully loaded.
[43] Fix | Delete
*
[44] Fix | Delete
* @param {Callback} callback A function to execute after the DOM is ready.
[45] Fix | Delete
*
[46] Fix | Delete
* @example
[47] Fix | Delete
* ```js
[48] Fix | Delete
* import domReady from '@wordpress/dom-ready';
[49] Fix | Delete
*
[50] Fix | Delete
* domReady( function() {
[51] Fix | Delete
* //do something after DOM loads.
[52] Fix | Delete
* } );
[53] Fix | Delete
* ```
[54] Fix | Delete
*
[55] Fix | Delete
* @return {void}
[56] Fix | Delete
*/
[57] Fix | Delete
function domReady(callback) {
[58] Fix | Delete
if (typeof document === 'undefined') {
[59] Fix | Delete
return;
[60] Fix | Delete
}
[61] Fix | Delete
if (document.readyState === 'complete' ||
[62] Fix | Delete
// DOMContentLoaded + Images/Styles/etc loaded, so we call directly.
[63] Fix | Delete
document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.
[64] Fix | Delete
) {
[65] Fix | Delete
return void callback();
[66] Fix | Delete
}
[67] Fix | Delete
[68] Fix | Delete
// DOMContentLoaded has not fired yet, delay callback until then.
[69] Fix | Delete
document.addEventListener('DOMContentLoaded', callback);
[70] Fix | Delete
}
[71] Fix | Delete
[72] Fix | Delete
(window.wp = window.wp || {}).domReady = __webpack_exports__["default"];
[73] Fix | Delete
/******/ })()
[74] Fix | Delete
;
[75] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function