mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 11:13:46 +08:00
fix
This commit is contained in:
parent
a4d257ca3f
commit
e1d3ccc4a8
@ -28,7 +28,7 @@ import 'package:starcitizen_doctor/ui/home/webview/webview_localization_capture_
|
|||||||
import 'package:url_launcher/url_launcher_string.dart';
|
import 'package:url_launcher/url_launcher_string.dart';
|
||||||
|
|
||||||
import 'package:html/parser.dart' as html;
|
import 'package:html/parser.dart' as html;
|
||||||
import 'package:html/dom.dart' as htmlDom;
|
import 'package:html/dom.dart' as html_dom;
|
||||||
|
|
||||||
import 'countdown/countdown_dialog_ui.dart';
|
import 'countdown/countdown_dialog_ui.dart';
|
||||||
import 'localization/localization_ui.dart';
|
import 'localization/localization_ui.dart';
|
||||||
@ -596,7 +596,7 @@ class HomeUIModel extends BaseUIModel {
|
|||||||
final h = html.parse(item.description ?? "");
|
final h = html.parse(item.description ?? "");
|
||||||
if (h.body == null) return "";
|
if (h.body == null) return "";
|
||||||
for (var node in h.body!.nodes) {
|
for (var node in h.body!.nodes) {
|
||||||
if (node is htmlDom.Element) {
|
if (node is html_dom.Element) {
|
||||||
if (node.localName == "img") {
|
if (node.localName == "img") {
|
||||||
return node.attributes["src"]?.trim() ?? "";
|
return node.attributes["src"]?.trim() ?? "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user