@appwrite.io/console 0.7.0-rc.1 → 0.7.0-rc.2

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/README.md CHANGED
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.7.0-rc.1"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.7.0-rc.2"></script>
37
37
  ```
38
38
 
39
39
 
package/dist/cjs/sdk.js CHANGED
@@ -280,7 +280,7 @@ class Client {
280
280
  'x-sdk-name': 'Console',
281
281
  'x-sdk-platform': 'console',
282
282
  'x-sdk-language': 'web',
283
- 'x-sdk-version': '0.7.0-rc.1',
283
+ 'x-sdk-version': '0.7.0-rc.2',
284
284
  'X-Appwrite-Response-Format': '1.6.0',
285
285
  };
286
286
  this.realtime = {
@@ -548,6 +548,12 @@ class Client {
548
548
  prepareRequest(method, url, headers = {}, params = {}) {
549
549
  method = method.toUpperCase();
550
550
  headers = Object.assign({}, this.headers, headers);
551
+ if (typeof window !== 'undefined' && window.localStorage) {
552
+ const cookieFallback = window.localStorage.getItem('cookieFallback');
553
+ if (cookieFallback) {
554
+ headers['X-Fallback-Cookies'] = cookieFallback;
555
+ }
556
+ }
551
557
  let options = {
552
558
  method,
553
559
  headers,