Frontend first draft
This commit is contained in:
12
frontend/pweb/lib/utils/http.dart
Normal file
12
frontend/pweb/lib/utils/http.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
// ignore: avoid_web_libraries_in_flutter
|
||||
import 'package:web/web.dart' as web;
|
||||
|
||||
|
||||
String getUrl() {
|
||||
return web.window.location.href;
|
||||
}
|
||||
|
||||
String? getQueryParameter(String queryParameter) {
|
||||
Uri uri = Uri.parse(getUrl());
|
||||
return uri.queryParameters[queryParameter];
|
||||
}
|
||||
Reference in New Issue
Block a user