@nitra/cap 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cap",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Nitra capacitor components",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -81,9 +81,7 @@ async function getWebPushToken() {
81
81
  * @returns {Promise<void>}
82
82
  */
83
83
  async function sendTokenToServer(pushToken) {
84
- const host = import.meta.env.VITE_NOTIFY_URL ?? import.meta.env.VITE_LOCALHOST
85
-
86
- const response = await fetch(`${host}/save-user`, {
84
+ const response = await fetch('/n-push/save-user', {
87
85
  method: 'POST',
88
86
  headers: {
89
87
  'Content-Type': 'application/json',