From aad94222e8bf64f957f33c404995e5fea885df5a Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 29 Aug 2023 10:24:58 -0600 Subject: [PATCH] Tweak img paths to avoid cross-domain origin issues on web platform (WIP) --- lib/logic/data/unsplash_photo_data.dart | 2 +- lib/ui/screens/editorial/widgets/_scrolling_content.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logic/data/unsplash_photo_data.dart b/lib/logic/data/unsplash_photo_data.dart index b5390e2e..175a5e91 100644 --- a/lib/logic/data/unsplash_photo_data.dart +++ b/lib/logic/data/unsplash_photo_data.dart @@ -29,7 +29,7 @@ class UnsplashPhotoData { if (PlatformInfo.pixelRatio >= 1.5 || PlatformInfo.isDesktop) { size *= 2; } - return 'https://wonderous.info/unsplash/$id-$size.jpg'; + return 'https://www.wonderous.info/unsplash/$id-$size.jpg'; } /// List of image ids by collection. This can be generated with the [UnsplashDownloadService].generateUnsplashCollectionsClass(). diff --git a/lib/ui/screens/editorial/widgets/_scrolling_content.dart b/lib/ui/screens/editorial/widgets/_scrolling_content.dart index dd0d4052..199a505a 100644 --- a/lib/ui/screens/editorial/widgets/_scrolling_content.dart +++ b/lib/ui/screens/editorial/widgets/_scrolling_content.dart @@ -170,7 +170,7 @@ class _YouTubeThumbnail extends StatelessWidget { final String id; final String caption; - String get imageUrl => 'http://img.youtube.com/vi/$id/hqdefault.jpg'; + String get imageUrl => 'https://img.youtube.com/vi/$id/hqdefault.jpg'; @override Widget build(BuildContext context) {