mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			299 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			299 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:examples/platform/page_provider.dart';
 | |
| import 'package:web/web.dart';
 | |
| 
 | |
| class PageProviderImpl extends PageProvider {
 | |
|   @override
 | |
|   String? getPage() {
 | |
|     var page = window.location.search;
 | |
|     if (page.startsWith('?')) {
 | |
|       page = page.substring(1);
 | |
|     }
 | |
|     return page;
 | |
|   }
 | |
| }
 | 
