Skip to content

Commit

Permalink
Merge pull request #1444 from openkraken/yifei8-patch-1
Browse files Browse the repository at this point in the history
[fix] kraken not support relative protocol
  • Loading branch information
answershuto authored Jul 17, 2022
2 parents 0aaaa27 + e6a144a commit 7244aa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kraken/lib/src/dom/elements/head.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LinkElement extends Element {
LinkElement([BindingContext? context]) : super(context, defaultStyle: _defaultStyle);

Uri? _resolvedHyperlink;
Map<String, bool> _stylesheetLoaded = {};
final Map<String, bool> _stylesheetLoaded = {};

// Bindings.
@override
Expand Down
6 changes: 3 additions & 3 deletions kraken/lib/src/launcher/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1034,12 +1034,12 @@ class KrakenController {
return completer.future;
}

Uri? get _uri {
String? get _url {
HistoryModule historyModule = module.moduleManager.getModule<HistoryModule>('History')!;
return historyModule.stackTop?.resolvedUri;
return historyModule.stackTop?.url;
}

String get url => _uri?.toString() ?? '';
String get url => _url ?? '';

_addHistory(KrakenBundle bundle) {
HistoryModule historyModule =
Expand Down

0 comments on commit 7244aa5

Please sign in to comment.