Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rk0cc committed Dec 26, 2023
1 parent bdfd3a2 commit ca7a10b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion model/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class OgHrefClient extends BaseClient {
}

/// Return current user agent string.
///
///
/// If [disguise] enabled, it returns [disguisedUserAgent] instead of
/// user defined.
static String get userAgent {
Expand Down
3 changes: 2 additions & 1 deletion model/lib/src/disguise_ua/disguise_ua_other.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:meta/meta.dart';

@internal
String get disguisedUserAgent => throw UnsupportedError("This feature requires dart:html only.");
String get disguisedUserAgent =>
throw UnsupportedError("This feature requires dart:html only.");
4 changes: 2 additions & 2 deletions model/lib/src/fetch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ final class MetaFetch {
static MetaFetch forTest() => MetaFetch._(true);

/// Define a value of user agent when making request in [fetchFromHttp].
///
///
/// If [disguiseUserAgent] enabled, any changes will not be applied
/// until it disabled and uses user defined again.
static void changeUserAgent(
Expand All @@ -102,7 +102,7 @@ final class MetaFetch {
static bool get disguiseUserAgent => OgHrefClient.disguise;

/// Retrive current preference of user agent [String].
///
///
/// When [disguiseUserAgent] enabled in web platform, it returns web
/// browser's user agent instead of user defined value.
static String get userAgentString => OgHrefClient.userAgent;
Expand Down

0 comments on commit ca7a10b

Please sign in to comment.