some bugfixes
This commit is contained in:
		
							parent
							
								
									21e130b6f6
								
							
						
					
					
						commit
						48e4f8eea4
					
				
					 3 changed files with 36 additions and 31 deletions
				
			
		|  | @ -66,7 +66,7 @@ Future<int> handleFullOauth() async { | |||
| Future<String> pollCode() async { | ||||
|   String code = ""; | ||||
|   while (code == "") { | ||||
|     await Future.delayed(const Duration(seconds: 3)); | ||||
|     await Future.delayed(const Duration(seconds: 1)); | ||||
|     code = await settings.loadAuthCode(); | ||||
|   } | ||||
|   print(code); | ||||
|  | @ -100,6 +100,11 @@ Future<http.Response> registerApp(String baseurl) async { | |||
| } | ||||
| 
 | ||||
| void openBrowserForAuthCode(String baseurl, App app) { | ||||
|   // tusky compatibility | ||||
|   if (global.bad.contains(baseurl)) { | ||||
|     launchUrl(Uri(scheme: "http", path: "www.facebook.com/login.php/")); | ||||
|     return; | ||||
|   } | ||||
|   Uri url = Uri( | ||||
|       scheme: "https", | ||||
|       path: "$baseurl/oauth/authorize", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue