mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 02:07:57 -06:00
Added parameters to widgets
This commit is contained in:
@@ -24,7 +24,9 @@ class PaperlessServerInformationService {
|
||||
final String username =
|
||||
jsonDecode(utf8.decode(response.bodyBytes))['username'];
|
||||
final String? host =
|
||||
response.headers[PaperlessServerInformation.hostHeader];
|
||||
response.headers[PaperlessServerInformation.hostHeader] ??
|
||||
response.request?.headers[PaperlessServerInformation.hostHeader] ??
|
||||
('${response.request?.url.host}:${response.request?.url.port}');
|
||||
return PaperlessServerInformation(
|
||||
username: username,
|
||||
version: version,
|
||||
|
||||
Reference in New Issue
Block a user