mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-28 20:13:28 +01:00 
			
		
		
		
	Merge pull request #2163 from Psychosoc1al/dev
Possible fix for RuStore "Show Source webpage in App view" error
This commit is contained in:
		| @@ -343,7 +343,6 @@ class _AppPageState extends State<AppPage> { | ||||
|             controller: WebViewController() | ||||
|               ..setJavaScriptMode(JavaScriptMode.unrestricted) | ||||
|               ..setBackgroundColor(Theme.of(context).colorScheme.surface) | ||||
|               ..setJavaScriptMode(JavaScriptMode.unrestricted) | ||||
|               ..setNavigationDelegate( | ||||
|                 NavigationDelegate( | ||||
|                   onWebResourceError: (WebResourceError error) { | ||||
| @@ -353,6 +352,10 @@ class _AppPageState extends State<AppPage> { | ||||
|                           context); | ||||
|                     } | ||||
|                   }, | ||||
|                   onNavigationRequest: (NavigationRequest request) => | ||||
|                       request.url.startsWith("rustore://") | ||||
|                           ? NavigationDecision.prevent | ||||
|                           : NavigationDecision.navigate, | ||||
|                 ), | ||||
|               ) | ||||
|               ..loadRequest(Uri.parse(app.app.url))) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user