Skip to content

Commit

Permalink
Fix js channel name
Browse files Browse the repository at this point in the history
Signed-off-by: Shengqi Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Dec 20, 2024
1 parent 92760ec commit d1e8e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class _PlatformAdaptingHomePageState extends State<PlatformAdaptingHomePage> {
final top = _buildTop(context);
final webviewController = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..addJavaScriptChannel("NFSee", onMessageReceived: webview.javaScriptCallback)
..addJavaScriptChannel("nfsee", onMessageReceived: webview.javaScriptCallback)
..setNavigationDelegate(NavigationDelegate(
onPageFinished: webview.onWebviewPageLoad,
));
Expand Down

0 comments on commit d1e8e38

Please sign in to comment.