mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
webview_cef (linux webview) not works in other platforms
This commit is contained in:
@@ -35,7 +35,6 @@ import 'package:provider/provider.dart';
|
||||
import 'package:quick_actions/quick_actions.dart';
|
||||
import 'package:receive_intent/receive_intent.dart' as receiveIntent;
|
||||
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
|
||||
import 'package:webview_cef/webview_cef.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
|
||||
import 'const/base.dart';
|
||||
@@ -107,9 +106,10 @@ Future<void> main() async {
|
||||
print(e);
|
||||
}
|
||||
|
||||
if (Platform.isLinux) {
|
||||
WebviewManager().initialize(userAgent: Base.USER_AGENT);
|
||||
}
|
||||
// linux webview, only open in linux platform
|
||||
// if (Platform.isLinux) {
|
||||
// WebviewManager().initialize(userAgent: Base.USER_AGENT);
|
||||
// }
|
||||
|
||||
await doInit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user