Skip to content

Commit f0d669b

Browse files
committed
version bump 0.305
1 parent 09e3049 commit f0d669b

5 files changed

Lines changed: 15 additions & 14 deletions

File tree

assets_js_bitrequest_core.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,9 +1056,10 @@ function cancel_url_dialogs() {
10561056
}
10571057

10581058
// Manages URL routing and page transitions for iOS app integration
1059-
function ios_redirections(url) {
1059+
function ios_redirections(url, pwa) {
10601060
if (!url) return
1061-
const query_string = get_search(url),
1061+
const app = !pwa, // function is called from app
1062+
query_string = get_search(url),
10621063
url_params = parse_url_params(query_string);
10631064
if (url_params.xss) return
10641065
const current_url = glob_const.w_loc.href.toUpperCase(),
@@ -1089,11 +1090,11 @@ function ios_redirections(url) {
10891090
if (is_opendialog()) {
10901091
canceldialog();
10911092
setTimeout(function() {
1092-
check_params(url_params);
1093+
check_params(url_params, app);
10931094
}, 1000);
10941095
return
10951096
}
1096-
check_params(url_params);
1097+
check_params(url_params, app);
10971098
}
10981099

10991100
// (Can only be envoked from the IOS app), Configures app for iOS-specific behaviors and adds iOS identifier
@@ -4531,7 +4532,7 @@ function expand_shorturl(input_param) {
45314532
}
45324533
const cached_url = br_get_session("longurl_" + input_param);
45334534
if (cached_url) { // check for cached values
4534-
ios_redirections(cached_url);
4535+
ios_redirections(cached_url, true);
45354536
return
45364537
}
45374538
if (input_param) {
@@ -4565,7 +4566,7 @@ function expand_shorturl(input_param) {
45654566
const long_url = parsed_data.sharedurl;
45664567
if (long_url) {
45674568
const local_url = make_local(long_url);
4568-
ios_redirections(local_url);
4569+
ios_redirections(local_url, true);
45694570
br_set_session("longurl_" + input_param, local_url);
45704571
return
45714572
}
@@ -4590,7 +4591,7 @@ function expand_bitly_url(input_param) {
45904591
const bitly_id = input_param.slice(3),
45914592
cached_url = br_get_session("longurl_" + bitly_id);
45924593
if (cached_url) { // check for cached values
4593-
ios_redirections(cached_url);
4594+
ios_redirections(cached_url, true);
45944595
return
45954596
}
45964597
api_proxy({
@@ -4615,7 +4616,7 @@ function expand_bitly_url(input_param) {
46154616
if (parsed_data) {
46164617
const long_url = parsed_data.long_url;
46174618
if (long_url) {
4618-
ios_redirections(long_url);
4619+
ios_redirections(long_url, true);
46194620
br_set_session("longurl_" + bitly_id, long_url);
46204621
return
46214622
}

assets_js_bitrequest_lightning.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,7 @@ function render_lightning_interface(replace) {
191191
"<ul>" +
192192
"</div>" +
193193
"</div>",
194-
content_check = $("#add_lndnode_trigger");
195-
if (content_check.length && !replace) return // prevent double content
196-
const content = template_dialog_temp({
194+
content = template_dialog_temp({
197195
"id": "lnsettingsbox",
198196
"icon": "icon-power",
199197
"title": node_title,

assets_js_lib_global_queries.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ function init_keys(key_obj, set) { // set required keys
11831183

11841184
// ** Check params ** //
11851185
// Processes URL parameters for routing and action dispatch
1186-
function check_params(params) {
1186+
function check_params(params, app) {
11871187
const url_params = params || get_urlparameters();
11881188
if (url_params.xss) {
11891189
return
@@ -1214,6 +1214,8 @@ function check_params(params) {
12141214
return
12151215
}
12161216
if (url_params.scheme) {
1217+
const first_load = glob_const.html.hasClass("firstload");
1218+
if (first_load && app) return
12171219
check_intents(url_params.scheme);
12181220
return
12191221
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ <h2 class="heading tl_page3">Settings</h2>
8585
<ul id="appsettings" class="settinglist applist listyle2">
8686
</ul>
8787
<div id="app_info">
88-
<p><span id="ua">PWA v0.304</span><br />
88+
<p><span id="ua">PWA v0.305</span><br />
8989
<a href="https://github.com/bitrequest/bitrequest.github.io/" target="_blank" class="exit">Source code</a><br />
9090
<a href="https://github.com/bitrequest/bitrequest.github.io/wiki" target="_blank" class="exit">About</a><br />
9191
<a href="https://www.bitrequest.io/privacy" target="_blank" class="exit">Privacy / Disclaimer</a><br />

serviceworker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE = "bitrequest-page-v0.304",
1+
const CACHE = "bitrequest-page-v0.305",
22
offlineFallbackPage = "index.html";
33

44
// Install: cache core assets with new version

0 commit comments

Comments
 (0)