diff --git a/lib/global.dart b/lib/global.dart index 2a155e2..7675324 100644 --- a/lib/global.dart +++ b/lib/global.dart @@ -1,3 +1,4 @@ +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:loris/business_logic/settings.dart'; @@ -6,8 +7,8 @@ const String version = "v0.2 'the themes update'"; const String useragent = "$name/$version"; const String website = "https://git.kittycat.homes/zoe/loris"; -const Map defaultHeaders = { - "User-Agent": useragent, +final Map defaultHeaders = { + if (!kIsWeb) "User-Agent": useragent, "accept": "application/json", "Content-Type": "application/json" };