Skip to content

Commit e8fc60e

Browse files
committed
update dart.library.html to the new one
1 parent edc7348 commit e8fc60e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/gotrue/lib/src/gotrue_client.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import 'package:meta/meta.dart';
1616
import 'package:retry/retry.dart';
1717
import '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;
2121
import '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";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export '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';

packages/supabase_flutter/lib/src/local_storage.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:shared_preferences/shared_preferences.dart';
66
import 'package:supabase_flutter/supabase_flutter.dart';
77

88
import './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.
1212
const 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 {

0 commit comments

Comments
 (0)