forked from baron/baron-sso
flutter 린트 적용
This commit is contained in:
@@ -50,7 +50,7 @@ class AuthTokenStore {
|
||||
_localStorage.setItem(_providerKey, provider);
|
||||
}
|
||||
} catch (e) {
|
||||
print("[AuthTokenStore] CRITICAL - Failed to set token: $e");
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,25 +12,17 @@ class WebWindow {
|
||||
|
||||
void redirectTo(String url) {
|
||||
final currentHref = web.window.location.href;
|
||||
Uri? targetUri;
|
||||
try {
|
||||
targetUri = Uri.parse(url);
|
||||
} catch (_) {
|
||||
debugPrint("[WebWindow] redirectTo parse failed: url=$url");
|
||||
}
|
||||
|
||||
debugPrint(
|
||||
"[WebWindow] redirectTo start: current=$currentHref, target=$url",
|
||||
);
|
||||
|
||||
print("[WebWindow] FINAL REDIRECT ATTEMPT. URL: $url");
|
||||
|
||||
// Most direct and safe way for WASM: location.href assignment via package:web
|
||||
Future.delayed(Duration.zero, () {
|
||||
try {
|
||||
web.window.location.href = url;
|
||||
} catch (e) {
|
||||
print("[WebWindow] CRITICAL JS ERROR: $e");
|
||||
debugPrint("[WebWindow] CRITICAL JS ERROR: $e");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user