mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-28 11:27:24 +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;
|
|
}
|
|
}
|