Файловый менеджер - Редактировать - /home/lexlmvtu/public_html/wp-content/plugins/elementor_old/app/assets/js/hooks/use-query-params.js
Назад
export default function useQueryParams() { const urlSearchParams = new URLSearchParams( window.location.search ), urlParams = Object.fromEntries( urlSearchParams.entries() ), hashValue = location.hash.match( /\?(.+)/ )?.[ 1 ], hashParams = {}; if ( hashValue ) { hashValue.split( '&' ).forEach( ( pair ) => { const [ key, value ] = pair.split( '=' ); hashParams[ key ] = value; } ); } // Merging the URL params with the hash params. const queryParams = { ...urlParams, ...hashParams, }; return { getAll: () => queryParams, }; }
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка