Handle tonsite:// links from the system.

This commit is contained in:
John Preston
2024-07-30 19:19:30 +02:00
parent fb9ce6d3a8
commit bb6c94ef4f
5 changed files with 37 additions and 18 deletions
+4 -6
View File
@@ -523,12 +523,10 @@ void Controller::createWebview(const Webview::StorageId &storageId) {
if (!script.isEmpty()) {
_webview->eval(script);
}
//} else if (event == u"location_change"_q) {
// _index = object.value("index").toInt();
// _hash = object.value("hash").toString();
// _back->toggle(
// (object.value("position").toInt() > 0),
// anim::type::normal);
} else if (event == u"location_change"_q) {
_index = object.value("index").toInt();
_hash = object.value("hash").toString();
_webview->refreshNavigationHistoryState();
}
});
});