Skip to content

Commit 7244aa5

Browse files
authored
Merge pull request #1444 from openkraken/yifei8-patch-1
[fix] kraken not support relative protocol
2 parents 0aaaa27 + e6a144a commit 7244aa5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

kraken/lib/src/dom/elements/head.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LinkElement extends Element {
3232
LinkElement([BindingContext? context]) : super(context, defaultStyle: _defaultStyle);
3333

3434
Uri? _resolvedHyperlink;
35-
Map<String, bool> _stylesheetLoaded = {};
35+
final Map<String, bool> _stylesheetLoaded = {};
3636

3737
// Bindings.
3838
@override

kraken/lib/src/launcher/controller.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,12 +1034,12 @@ class KrakenController {
10341034
return completer.future;
10351035
}
10361036

1037-
Uri? get _uri {
1037+
String? get _url {
10381038
HistoryModule historyModule = module.moduleManager.getModule<HistoryModule>('History')!;
1039-
return historyModule.stackTop?.resolvedUri;
1039+
return historyModule.stackTop?.url;
10401040
}
10411041

1042-
String get url => _uri?.toString() ?? '';
1042+
String get url => _url ?? '';
10431043

10441044
_addHistory(KrakenBundle bundle) {
10451045
HistoryModule historyModule =

0 commit comments

Comments
 (0)