| @@ -50,8 +50,9 @@ | ||
| 50 | 50 | |
| 51 | 51 | $cfg = array( |
| 52 | 52 | 'endpoint' => esc_url_raw( rest_url( 'easyfonts/v1/async-fonts' ) ), |
| 53 | 53 | 'nonce' => wp_create_nonce( 'wp_rest' ), |
| 54 | + 'token' => Settings::beacon_token(), | |
| 54 | 55 | ); |
| 55 | 56 | |
| 56 | 57 | $src = EASYFONTS_DIR . 'assets/frontend/async-blocker.min.js'; |
| 57 | 58 | |
| @@ -107,8 +108,9 @@ | ||
| 107 | 108 | 'EasyFontsBeacon', |
| 108 | 109 | array( |
| 109 | 110 | 'endpoint' => esc_url_raw( rest_url( 'easyfonts/v1/beacon' ) ), |
| 110 | 111 | 'nonce' => wp_create_nonce( 'wp_rest' ), |
| 112 | + 'token' => Settings::beacon_token(), | |
| 111 | 113 | 'route' => '' === $route ? '/' : $route, |
| 112 | 114 | 'device' => $device, |
| 113 | 115 | ) |
| 114 | 116 | ); |