File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
realtime_client/lib/src/websocket Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import 'package:meta/meta.dart';
1616import 'package:retry/retry.dart' ;
1717import 'package:rxdart/subjects.dart' ;
1818
19- import 'broadcast_stub.dart' if (dart.library.html ) './broadcast_web.dart'
19+ import 'broadcast_stub.dart' if (dart.library.js_interop ) './broadcast_web.dart'
2020 as web;
2121import 'version.dart' ;
2222
@@ -1163,7 +1163,7 @@ class GoTrueClient {
11631163 }
11641164
11651165 void _mayStartBroadcastChannel () {
1166- if (const bool .fromEnvironment ('dart.library.html ' )) {
1166+ if (const bool .fromEnvironment ('dart.library.js_interop ' )) {
11671167 // Used by the js library as well
11681168 final broadcastKey =
11691169 "sb-${Uri .parse (_url ).host .split ("." ).first }-auth-token" ;
Original file line number Diff line number Diff line change 11export 'websocket_stub.dart'
22 if (dart.library.io) 'websocket_io.dart'
3- if (dart.library.html ) 'websocket_web.dart' ;
3+ if (bool.fromEnvironment ) 'websocket_web.dart' ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import 'package:shared_preferences/shared_preferences.dart';
66import 'package:supabase_flutter/supabase_flutter.dart' ;
77
88import './local_storage_stub.dart'
9- if (dart.library.html ) './local_storage_web.dart' as web;
9+ if (dart.library.js_interop ) './local_storage_web.dart' as web;
1010
1111/// Only used for migration from Hive to SharedPreferences. Not actually in use.
1212const supabasePersistSessionKey = 'SUPABASE_PERSIST_SESSION_KEY' ;
@@ -70,7 +70,7 @@ class SharedPreferencesLocalStorage extends LocalStorage {
7070
7171 final String persistSessionKey;
7272 static const _useWebLocalStorage =
73- kIsWeb && bool .fromEnvironment ("dart.library.html " );
73+ kIsWeb && bool .fromEnvironment ("dart.library.js_interop " );
7474
7575 @override
7676 Future <void > initialize () async {
You can’t perform that action at this time.
0 commit comments