runJavaScript method
Runs the given JavaScript in the context of the current page.
The Future completes with an error if a JavaScript error occurred.
Implementation
@override
Future<void> runJavaScript(String javascript) async {
if (javascript.isEmpty) {
TBLLogger.log('JavaScript string is empty');
return null;
}
try {
return await super.runJavaScript(javascript);
} catch (e) {
TBLLogger.log('Failed to execute JavaScript: $e');
}
}