This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export 'telegram_launcher_stub.dart'
|
||||
if (dart.library.js_interop) 'telegram_launcher_web.dart';
|
||||
@@ -0,0 +1 @@
|
||||
void openTelegramUrl(String url) {}
|
||||
@@ -0,0 +1,8 @@
|
||||
import 'dart:js_interop';
|
||||
|
||||
@JS('window.open')
|
||||
external JSAny? _open(JSString url, JSString target, JSString features);
|
||||
|
||||
void openTelegramUrl(String url) {
|
||||
_open(url.toJS, '_blank'.toJS, 'noopener,noreferrer'.toJS);
|
||||
}
|
||||
Reference in New Issue
Block a user