Add browser playtest and improve library, media and input
Bundle web bootstrap, icons, local font fallbacks and hosting instructions. Add optimized WebP/MP3 packaging, asset checks and a browser narration regression tool. Support browser audio handoff and ad-free explained hints. Refresh the responsive bookshelf and reduce unnecessary app, narration and paper repaint work. Preserve deliberate page swipes while tolerating small mouse movements during cell and navigation clicks. Validation: all 77 Flutter tests pass; shell, JavaScript and Python scripts parse; locale and web manifests are valid JSON; git diff --check passes.
This commit is contained in:
+221
-232
@@ -1,3 +1,5 @@
|
||||
import 'services/browser_assets.dart';
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:math' as math;
|
||||
|
||||
@@ -22,6 +24,7 @@ import 'services/ambience.dart';
|
||||
import 'services/narrator.dart';
|
||||
import 'services/progress.dart';
|
||||
import 'ui/board.dart';
|
||||
import 'ui/library.dart';
|
||||
import 'ui/discovery.dart';
|
||||
import 'ui/paper.dart';
|
||||
|
||||
@@ -34,6 +37,14 @@ Future<void> main() async {
|
||||
'Dancing Script',
|
||||
], await rootBundle.loadString('assets/fonts/OFL.txt'));
|
||||
});
|
||||
LicenseRegistry.addLicense(() async* {
|
||||
yield LicenseEntryWithLineBreaks([
|
||||
'Noto Sans',
|
||||
'Noto Sans Symbols',
|
||||
'Noto Sans Symbols 2',
|
||||
'Noto Sans Math',
|
||||
], await rootBundle.loadString('assets/fonts/NOTO-LICENSE.txt'));
|
||||
});
|
||||
SystemChrome.setSystemUIOverlayStyle(
|
||||
const SystemUiOverlayStyle(
|
||||
statusBarColor: cream,
|
||||
@@ -59,68 +70,114 @@ Future<void> main() async {
|
||||
runApp(LumenApp(game: game));
|
||||
}
|
||||
|
||||
class LumenApp extends StatelessWidget {
|
||||
class LumenApp extends StatefulWidget {
|
||||
const LumenApp({super.key, required this.game, this.adsEnabled = true});
|
||||
final Game game;
|
||||
final bool adsEnabled;
|
||||
@override
|
||||
Widget build(BuildContext context) => ListenableBuilder(
|
||||
listenable: game,
|
||||
builder: (context, _) {
|
||||
final catalog = game.library?.copy ?? TranslationCatalog.english;
|
||||
final language = game.requestedLanguage.replaceAll('_', '-');
|
||||
final locale = localeFromTag(language);
|
||||
final parts = language.split('-');
|
||||
final languages = <String>{
|
||||
...catalog.languages.keys,
|
||||
...?game.library?.stories.expand((s) => s.languages.keys),
|
||||
};
|
||||
final latin = const [
|
||||
'en',
|
||||
'de',
|
||||
'fr',
|
||||
'es',
|
||||
'it',
|
||||
'pt',
|
||||
'nl',
|
||||
'da',
|
||||
'sv',
|
||||
'no',
|
||||
'fi',
|
||||
].contains(parts.first);
|
||||
return MaterialApp(
|
||||
title: 'Lumen',
|
||||
debugShowCheckedModeBanner: false,
|
||||
locale: locale,
|
||||
supportedLocales: languages.map(localeFromTag).toList(),
|
||||
localizationsDelegates: GlobalMaterialLocalizations.delegates,
|
||||
builder: (context, child) => CopyScope(
|
||||
catalog: catalog,
|
||||
language: language,
|
||||
overrides: game.book.copy,
|
||||
child: child!,
|
||||
),
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: blue, surface: cream),
|
||||
scaffoldBackgroundColor: cream,
|
||||
State<LumenApp> createState() => _LumenAppState();
|
||||
}
|
||||
|
||||
class _LumenAppState extends State<LumenApp> {
|
||||
Game get game => widget.game;
|
||||
late Book _book;
|
||||
late String _language;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_book = game.book;
|
||||
_language = game.requestedLanguage;
|
||||
game.addListener(_configurationChanged);
|
||||
}
|
||||
|
||||
void _configurationChanged() {
|
||||
// Puzzle marks and navigation are already handled by Notebook. Rebuilding
|
||||
// MaterialApp and its theme for each cell press needlessly rebuilds the app.
|
||||
if (identical(_book, game.book) && _language == game.requestedLanguage) {
|
||||
return;
|
||||
}
|
||||
setState(() {
|
||||
_book = game.book;
|
||||
_language = game.requestedLanguage;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
void didUpdateWidget(LumenApp oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (oldWidget.game != game) {
|
||||
oldWidget.game.removeListener(_configurationChanged);
|
||||
game.addListener(_configurationChanged);
|
||||
}
|
||||
_book = game.book;
|
||||
_language = game.requestedLanguage;
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
game.removeListener(_configurationChanged);
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final catalog = game.library?.copy ?? TranslationCatalog.english;
|
||||
final language = game.requestedLanguage.replaceAll('_', '-');
|
||||
final locale = localeFromTag(language);
|
||||
final parts = language.split('-');
|
||||
final languages = <String>{
|
||||
...catalog.languages.keys,
|
||||
...?game.library?.stories.expand((s) => s.languages.keys),
|
||||
};
|
||||
final latin = const [
|
||||
'en',
|
||||
'de',
|
||||
'fr',
|
||||
'es',
|
||||
'it',
|
||||
'pt',
|
||||
'nl',
|
||||
'da',
|
||||
'sv',
|
||||
'no',
|
||||
'fi',
|
||||
].contains(parts.first);
|
||||
return MaterialApp(
|
||||
title: 'Lumen',
|
||||
debugShowCheckedModeBanner: false,
|
||||
locale: locale,
|
||||
supportedLocales: languages.map(localeFromTag).toList(),
|
||||
localizationsDelegates: GlobalMaterialLocalizations.delegates,
|
||||
builder: (context, child) => CopyScope(
|
||||
catalog: catalog,
|
||||
language: language,
|
||||
overrides: game.book.copy,
|
||||
child: child!,
|
||||
),
|
||||
theme: ThemeData(
|
||||
fontFamilyFallback: kIsWeb
|
||||
? const ['LumenText', 'LumenSymbols', 'LumenSymbols2', 'LumenMath']
|
||||
: null,
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: blue, surface: cream),
|
||||
scaffoldBackgroundColor: cream,
|
||||
fontFamily: latin ? 'MaraHand' : null,
|
||||
textTheme: ThemeData.light().textTheme.apply(
|
||||
fontFamily: latin ? 'MaraHand' : null,
|
||||
textTheme: ThemeData.light().textTheme.apply(
|
||||
fontFamily: latin ? 'MaraHand' : null,
|
||||
bodyColor: ink,
|
||||
displayColor: ink,
|
||||
),
|
||||
dialogTheme: const DialogThemeData(backgroundColor: cream),
|
||||
textButtonTheme: TextButtonThemeData(
|
||||
style: TextButton.styleFrom(
|
||||
textStyle: hand(22),
|
||||
foregroundColor: blue,
|
||||
),
|
||||
bodyColor: ink,
|
||||
displayColor: ink,
|
||||
),
|
||||
dialogTheme: const DialogThemeData(backgroundColor: cream),
|
||||
textButtonTheme: TextButtonThemeData(
|
||||
style: TextButton.styleFrom(
|
||||
textStyle: hand(22),
|
||||
foregroundColor: blue,
|
||||
),
|
||||
),
|
||||
home: Notebook(game: game, adsEnabled: adsEnabled),
|
||||
);
|
||||
},
|
||||
);
|
||||
),
|
||||
home: Notebook(game: game, adsEnabled: widget.adsEnabled),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class Notebook extends StatefulWidget {
|
||||
@@ -441,8 +498,7 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => PaperSkin(
|
||||
// The shelf is shared by every book, so it uses the default notebook page
|
||||
// rather than the paper of whichever book was last open.
|
||||
// Reading pages follow the selected book; the library draws its own surface.
|
||||
asset: g.screen == Screen.library ? null : g.book.paperAsset,
|
||||
child: PopScope(
|
||||
canPop:
|
||||
@@ -524,91 +580,56 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
]),
|
||||
);
|
||||
}
|
||||
return Leaf(
|
||||
return LibraryShelf(
|
||||
key: const ValueKey('library'),
|
||||
body: LayoutBuilder(
|
||||
builder: (context, c) {
|
||||
final compact = c.maxWidth < 480;
|
||||
// Wide tablets get two columns of books; phones keep one dense column.
|
||||
final width = math.min(c.maxWidth, 860.0);
|
||||
final columns = width >= 720 ? 2 : 1;
|
||||
return Center(
|
||||
child: SizedBox(
|
||||
width: width,
|
||||
child: column([
|
||||
folio('L U M E N / STORY LIBRARY'),
|
||||
writing('Choose a book', size: compact ? 34 : 40),
|
||||
writing(
|
||||
'Open a book to continue where you left off.',
|
||||
size: compact ? 19 : 23,
|
||||
color: const Color(0xff70503b),
|
||||
),
|
||||
gap(compact ? 10 : 16),
|
||||
FutureBuilder<List<Book>>(
|
||||
future: shelfBooks(catalogue),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.hasError) {
|
||||
return column([
|
||||
writing(
|
||||
'This story could not be opened. Please try again.',
|
||||
size: 21,
|
||||
color: muted,
|
||||
),
|
||||
action(
|
||||
'Try again',
|
||||
() => setState(() {
|
||||
_shelf = null;
|
||||
_shelfLanguage = '';
|
||||
}),
|
||||
),
|
||||
]);
|
||||
}
|
||||
final books = snapshot.data;
|
||||
if (books == null) {
|
||||
return const Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 40),
|
||||
child: Center(
|
||||
child: CircularProgressIndicator(color: blue),
|
||||
),
|
||||
);
|
||||
}
|
||||
if (books.isEmpty) {
|
||||
return writing(
|
||||
'No stories are installed.',
|
||||
size: 22,
|
||||
color: muted,
|
||||
);
|
||||
}
|
||||
final cards = [
|
||||
for (final story in books)
|
||||
bookCard(story, compact: compact),
|
||||
];
|
||||
if (columns == 1) return column(cards);
|
||||
final cardWidth = (width - 14) / 2;
|
||||
return Wrap(
|
||||
spacing: 14,
|
||||
runSpacing: 2,
|
||||
children: [
|
||||
for (final card in cards)
|
||||
SizedBox(width: cardWidth, child: card),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
gap(4),
|
||||
action('Settings', settings),
|
||||
]),
|
||||
),
|
||||
onSettings: settings,
|
||||
builder: (context, width) => FutureBuilder<List<Book>>(
|
||||
future: shelfBooks(catalogue),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.hasError) {
|
||||
return column([
|
||||
writing(
|
||||
'This story could not be opened. Please try again.',
|
||||
size: 21,
|
||||
color: muted,
|
||||
),
|
||||
action(
|
||||
'Try again',
|
||||
() => setState(() {
|
||||
_shelf = null;
|
||||
_shelfLanguage = '';
|
||||
}),
|
||||
),
|
||||
]);
|
||||
}
|
||||
final books = snapshot.data;
|
||||
if (books == null) {
|
||||
return const Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 40),
|
||||
child: Center(child: CircularProgressIndicator(color: blue)),
|
||||
);
|
||||
}
|
||||
if (books.isEmpty) {
|
||||
return writing('No stories are installed.', size: 22, color: muted);
|
||||
}
|
||||
final columns = width >= 900 ? 3 : (width >= 560 ? 2 : 1);
|
||||
const spacing = 28.0;
|
||||
final cardWidth = (width - spacing * (columns - 1)) / columns;
|
||||
return Wrap(
|
||||
spacing: spacing,
|
||||
runSpacing: 36,
|
||||
children: [
|
||||
for (final story in books)
|
||||
SizedBox(width: cardWidth, child: bookCard(story)),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// One book on the shelf: cover, translated metadata, progress and the way
|
||||
/// back into the reader. A book with a saved leaf offers "Continue reading".
|
||||
/// Phones get a denser card so several books fit the narrow notebook page.
|
||||
Widget bookCard(Book story, {required bool compact}) {
|
||||
/// Selection still restores the saved leaf independently for each story.
|
||||
Widget bookCard(Book story) {
|
||||
final catalogue = g.library;
|
||||
if (catalogue == null) return const SizedBox.shrink();
|
||||
final store = g.store.forStory(story.id);
|
||||
@@ -617,81 +638,18 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
store.flag('done_${story.puzzleKey(i)}'),
|
||||
].where((done) => done).length;
|
||||
final saved = store.text('flutter_screen', 'home');
|
||||
final resuming = saved != Screen.home.name && saved != Screen.library.name;
|
||||
final current = story.id == g.book.id;
|
||||
final languages = catalogue
|
||||
.definition(story.id)
|
||||
.languages
|
||||
.values
|
||||
.map((entry) => entry['label'] as String? ?? '')
|
||||
.where((label) => label.isNotEmpty)
|
||||
.toList();
|
||||
return Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: compact ? 5 : 7),
|
||||
child: InkWell(
|
||||
key: ValueKey('library-book-${story.id}'),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
onTap: () => unawaited(openStory(story.id)),
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
color: blue.withValues(alpha: current ? .55 : .18),
|
||||
width: current ? 1.5 : 1,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(compact ? 9 : 12),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (story.coverAsset case final asset?)
|
||||
Padding(
|
||||
padding: EdgeInsets.only(right: compact ? 10 : 14),
|
||||
child: SizedBox(
|
||||
width: compact ? 54 : 78,
|
||||
height: compact ? 74 : 104,
|
||||
child: Image.asset(
|
||||
asset,
|
||||
fit: BoxFit.contain,
|
||||
semanticLabel: story.title,
|
||||
errorBuilder: (_, _, _) => const SizedBox.shrink(),
|
||||
),
|
||||
),
|
||||
),
|
||||
Expanded(
|
||||
child: column([
|
||||
writing(story.title, size: compact ? 23 : 29),
|
||||
if (!compact && story.description.isNotEmpty)
|
||||
writing(
|
||||
story.description,
|
||||
size: 20,
|
||||
color: const Color(0xff70503b),
|
||||
),
|
||||
if (languages.length > 1)
|
||||
writing(
|
||||
languages.join(' · '),
|
||||
size: compact ? 14 : 16,
|
||||
color: muted,
|
||||
),
|
||||
if (story.levels.isNotEmpty)
|
||||
writing(
|
||||
'$restored / ${story.levels.length} memories restored',
|
||||
size: compact ? 14 : 17,
|
||||
color: muted,
|
||||
),
|
||||
writing(
|
||||
resuming ? 'Continue reading' : 'Open this book ›',
|
||||
size: compact ? 17 : 19,
|
||||
color: blue,
|
||||
),
|
||||
]),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
return LibraryBookCard(
|
||||
story: story,
|
||||
restored: restored,
|
||||
resuming: saved != Screen.home.name && saved != Screen.library.name,
|
||||
languages: catalogue
|
||||
.definition(story.id)
|
||||
.languages
|
||||
.values
|
||||
.map((entry) => entry['label'] as String? ?? '')
|
||||
.where((label) => label.isNotEmpty)
|
||||
.toList(),
|
||||
onOpen: () => unawaited(openStory(story.id)),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -772,7 +730,7 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
),
|
||||
if (g.book.isMara)
|
||||
Image.asset(
|
||||
'assets/artwork/home-harbour-v2.png',
|
||||
artworkAsset('assets/artwork/home-harbour-v2.png'),
|
||||
height: 220,
|
||||
fit: BoxFit.contain,
|
||||
semanticLabel: 'Watercolour of the island at dusk, with the lighthouse and Gran’s cottage.',
|
||||
@@ -790,7 +748,7 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
InkWell(
|
||||
onTap: g.openNotebook,
|
||||
child: Image.asset(
|
||||
asset,
|
||||
artworkAsset(asset),
|
||||
height: 220,
|
||||
semanticLabel: g.book.title,
|
||||
),
|
||||
@@ -964,7 +922,7 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
if (p.speaker.isNotEmpty) writing(p.speaker, size: 17, color: muted),
|
||||
if (p.illustrationAsset case final asset?)
|
||||
Image.asset(
|
||||
asset,
|
||||
artworkAsset(asset),
|
||||
height: 155,
|
||||
fit: BoxFit.contain,
|
||||
semanticLabel: p.caption.isEmpty ? p.title : p.caption,
|
||||
@@ -1041,11 +999,10 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
? g.storyPage.id
|
||||
: 'campaign.${g.campaignIndex}.${g.screen == Screen.briefing ? 'before' : 'after'}';
|
||||
|
||||
Widget reading(String text, {double? size}) => ListenableBuilder(
|
||||
listenable: narrator,
|
||||
builder: (context, _) {
|
||||
final passage = narrator.passage,
|
||||
index = passage.isEmpty ? -1 : text.indexOf(passage);
|
||||
Widget reading(String text, {double? size}) => ValueListenableBuilder<String>(
|
||||
valueListenable: narrator.highlightedPassage,
|
||||
builder: (context, passage, _) {
|
||||
final index = passage.isEmpty ? -1 : text.indexOf(passage);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Text.rich(
|
||||
@@ -1353,13 +1310,15 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
Widget board({double maxWidth = 350}) {
|
||||
final p = g.puzzle;
|
||||
if (p == null) return const SizedBox.shrink();
|
||||
return Board(
|
||||
puzzle: p,
|
||||
cells: g.cells,
|
||||
onMark: g.mark,
|
||||
selectedArea: g.selectedArea,
|
||||
won: g.won,
|
||||
maxWidth: maxWidth,
|
||||
return RepaintBoundary(
|
||||
child: Board(
|
||||
puzzle: p,
|
||||
cells: g.cells,
|
||||
onMark: g.mark,
|
||||
selectedArea: g.selectedArea,
|
||||
won: g.won,
|
||||
maxWidth: maxWidth,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1373,7 +1332,8 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
size: 18,
|
||||
color: muted,
|
||||
),
|
||||
if (!g.won) InkButton('Hint · rewarded ad', hint, size: 22),
|
||||
if (!g.won)
|
||||
InkButton(kIsWeb ? 'Hint' : 'Hint · rewarded ad', hint, size: 22),
|
||||
];
|
||||
|
||||
/// The board stays in the viewport while supporting text scrolls separately.
|
||||
@@ -1572,6 +1532,18 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
}
|
||||
}
|
||||
|
||||
// Browser playtests have no mobile ad SDK or reward requirement.
|
||||
if (kIsWeb) {
|
||||
if (await confirm(
|
||||
'A little nudge?',
|
||||
'Reveal one cell with an explanation?',
|
||||
'Show hint',
|
||||
no: 'Keep thinking',
|
||||
)) {
|
||||
give();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!await confirm(
|
||||
'A little nudge?',
|
||||
'Watch a rewarded ad for one explained hint.',
|
||||
@@ -1615,7 +1587,7 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
label: level.object,
|
||||
height: height,
|
||||
artwork: Image.asset(
|
||||
asset,
|
||||
artworkAsset(asset),
|
||||
height: height,
|
||||
width: double.infinity,
|
||||
fit: BoxFit.contain,
|
||||
@@ -1702,12 +1674,29 @@ class _NotebookState extends State<Notebook> with WidgetsBindingObserver {
|
||||
);
|
||||
}
|
||||
|
||||
void rules() => message(
|
||||
'Find the light',
|
||||
'Light exactly as many cells as the number beside each row and above each column.\n\nTap to cycle: empty → light → crossed out → empty. Mark every cell to finish. Small dots mark fixed clues.\n\nA, B and C are overlapping areas with their own totals. Shared cells count in both areas. Compare clues and subtract their shared parts to find new deductions.\n\nEvery story grid reveals an object. Later pages require area comparisons; all are solvable without guessing. Classic practice grades the length of simpler row and column chains.\n\nWatch a rewarded ad for each explained hint. Hints are optional, and your puzzle remains available if no ad can be shown. Streaks count consecutive daily completions on this device.',
|
||||
close: 'Got it',
|
||||
);
|
||||
void rules() {
|
||||
final text = CopyScope.text(
|
||||
context,
|
||||
'Light exactly as many cells as the number beside each row and above each column.\n\nTap to cycle: empty → light → crossed out → empty. Mark every cell to finish. Small dots mark fixed clues.\n\nA, B and C are overlapping areas with their own totals. Shared cells count in both areas. Compare clues and subtract their shared parts to find new deductions.\n\nEvery story grid reveals an object. Later pages require area comparisons; all are solvable without guessing. Classic practice grades the length of simpler row and column chains.\n\nWatch a rewarded ad for each explained hint. Hints are optional, and your puzzle remains available if no ad can be shown. Streaks count consecutive daily completions on this device.',
|
||||
);
|
||||
message(
|
||||
'Find the light',
|
||||
kIsWeb
|
||||
? '${text.substring(0, text.lastIndexOf('\n\n'))}\n\n${CopyScope.text(context, 'Hints are free in this browser playtest. Each hint reveals one cell and explains the deduction. Streaks count consecutive daily completions in this browser.')}'
|
||||
: text,
|
||||
close: 'Got it',
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> privacy() async {
|
||||
if (kIsWeb) {
|
||||
await message(
|
||||
'Privacy & advertising',
|
||||
'This browser playtest has no advertising. Progress, puzzle marks, bookmarks and settings are saved only in this browser. Clearing site data removes them. Progress does not sync between devices. Your web host may keep normal access logs.',
|
||||
close: 'Close',
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (!await ads.privacy()) {
|
||||
await message(
|
||||
'Privacy & advertising',
|
||||
|
||||
Reference in New Issue
Block a user