element.scrollIntoView({ behavior: 'smooth' })
.wrap {
flex-wrap: wrap;
flex-direction: column;
}
.mini {
box-sizing: border-box;
}
Но если я на прямую использую axios, то все правильно работает:import axios from 'axios' axios.get('http://some-url')
function dynamic_page() {
$uri = $_SERVER['REQUEST_URI'];
$path = wp_parse_url( $uri, PHP_URL_PATH );
if (isset($_SERVER['HTTPS'])) {
$scheme = $_SERVER['HTTPS'];
}
else {
$scheme = '';
}
if (($scheme) && ('off' !== $scheme)) {
$scheme = 'https';
}
else {
$scheme = 'http';
}
if ( '/services.php' === $path ) {
include plugin_dir_path( __FILE__ ) . 'templates/services.php';
die();
}
if ( '/webhook.php' === $path ) {
include plugin_dir_path( __FILE__ ) . 'templates/webhook.php';
die();
}
}
add_action( 'init', 'dynamic_page' );