Tweak img paths to avoid cross-domain origin issues on web platform (WIP)

This commit is contained in:
Shawn 2023-08-29 10:24:58 -06:00
parent 43a1e801b8
commit aad94222e8
2 changed files with 2 additions and 2 deletions

View File

@ -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().

View File

@ -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) {