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