Skip to content

Commit

Permalink
Fix iframe approach
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Feb 18, 2024
1 parent 0642671 commit 9108fbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flutter_web_auth_2/lib/src/web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class FlutterWebAuth2WebPlugin extends FlutterWebAuth2Platform {
final parsedOptions = FlutterWebAuth2Options.fromJson(options);

if (parsedOptions.silentAuth) {
// Not in our hands - developers need to check sanity of URL themselves...
final authIframe = HTMLIFrameElement()
final authIframe = (document.createElement('iframe') as HTMLIFrameElement)
..src = url
..style.display = 'none';

Expand Down

0 comments on commit 9108fbd

Please sign in to comment.