@@ -1178,7 +1178,7 @@ class WebViewFullState extends State<WebViewFull> with WidgetsBindingObserver {
1178
1178
_terminalProvider.terminal = "Terminal" ;
1179
1179
1180
1180
// Userscripts initial load
1181
- if (Platform .isAndroid || (Platform .isIOS && widget.windowId == null ) || Platform .isWindows && widget.windowId == null ) {
1181
+ if (Platform .isAndroid || (( Platform .isIOS || Platform .isWindows) && widget.windowId == null ) ) {
1182
1182
UnmodifiableListView <UserScript > handlersScriptsToAdd = _userScriptsProvider.getHandlerSources (
1183
1183
apiKey: _userProvider? .basic? .userApiKey ?? "" ,
1184
1184
);
@@ -1298,7 +1298,7 @@ class WebViewFullState extends State<WebViewFull> with WidgetsBindingObserver {
1298
1298
final lockedTabCancels = _lockedTabShouldCancelsNavigation (action.request.url);
1299
1299
if (lockedTabCancels) return NavigationActionPolicy .CANCEL ;
1300
1300
1301
- if (Platform .isAndroid || (Platform .isIOS && widget.windowId == null ) || Platform .isWindows && widget.windowId == null ) {
1301
+ if (Platform .isAndroid || (( Platform .isIOS || Platform .isWindows) && widget.windowId == null ) ) {
1302
1302
// Userscripts load before webpage begins loading
1303
1303
UnmodifiableListView <UserScript > handlersScriptsToAdd = _userScriptsProvider.getHandlerSources (
1304
1304
apiKey: _userProvider? .basic? .userApiKey ?? "" ,
@@ -1501,7 +1501,7 @@ class WebViewFullState extends State<WebViewFull> with WidgetsBindingObserver {
1501
1501
List <String ?> scriptsToRemove = _userScriptsProvider.getScriptsToRemove (
1502
1502
url: uri.toString (),
1503
1503
);
1504
- if (Platform .isAndroid || (Platform .isIOS && widget.windowId == null )) {
1504
+ if (Platform .isAndroid || (( Platform .isIOS || Platform .isWindows) && widget.windowId == null )) {
1505
1505
for (final group in scriptsToRemove) {
1506
1506
await c.removeUserScriptsByGroupName (groupName: group! );
1507
1507
}
@@ -4992,7 +4992,7 @@ class WebViewFullState extends State<WebViewFull> with WidgetsBindingObserver {
4992
4992
4993
4993
inputUrl.replaceAll ("http://" , "https://" );
4994
4994
4995
- if (Platform .isAndroid || (Platform .isIOS && widget.windowId == null )) {
4995
+ if (Platform .isAndroid || (( Platform .isIOS || Platform .isWindows) && widget.windowId == null )) {
4996
4996
// Loads userscripts that are not triggered in shouldOverrideUrlLoading
4997
4997
// (e.g.: when reloading a page or navigating back/forward)
4998
4998
UnmodifiableListView <UserScript > scriptsToAdd = _userScriptsProvider.getCondSources (
0 commit comments