Skip to content

Commit 7453f12

Browse files
committed
icon placeholders
1 parent e9b42da commit 7453f12

7 files changed

+9
-9
lines changed

assets_js_bitrequest_bip39.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ function phrase_info_pu(selected_coin) {
17971797
if (platform_url && wallet_config.seed === true) {
17981798
const wallet_name = wallet_config.name,
17991799
wallet_site = wallet_config.website,
1800-
wallet_logo = "<img src='" + get_wallet_icon_url(wallet_name) + "' class='wallet_icon'/>";
1800+
wallet_logo = "<img src='" + get_wallet_icon_url(wallet_name) + "' class='wallet_icon' onerror=\"this.src='wp_holder.png'\">";
18011801
wallet_list += "<li><a href='" + wallet_site + "' target='_blank' class='exit app_dll'>" + wallet_logo + wallet_name +
18021802
"</a><a href='" + platform_url + "' target='_blank' class='exit store_tag'>" + store_badge + "</a></li>";
18031803
}
@@ -1890,7 +1890,7 @@ function list_compatible_wallets(coin) {
18901890
if (platform_url && wallet_config.seed === true) {
18911891
const wallet_name = wallet_config.name,
18921892
wallet_site = wallet_config.website,
1893-
wallet_logo = "<img src='" + get_wallet_icon_url(wallet_name) + "' class='wallet_icon'/>";
1893+
wallet_logo = "<img src='" + get_wallet_icon_url(wallet_name) + "' class='wallet_icon' onerror=\"this.src='wp_holder.png'\">";
18941894
wallet_list += "<li><a href='" + wallet_site + "' target='_blank' class='exit app_dll'>" + wallet_logo + wallet_name +
18951895
"</a><a href='" + platform_url + "' target='_blank' class='exit store_tag'>" + store_badge + "</a></li>";
18961896
}

assets_js_bitrequest_ethl2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function edit_l2() {
334334
$.each(apis, function(i, v2) {
335335
const node_name = v2.name,
336336
node_icon_url = get_node_icon(node_name),
337-
node_icon = (node_icon_url) ? "<img src='" + fetch_aws(node_icon_url) + ".png' class='icon'>" : "";
337+
node_icon = (node_icon_url) ? "<img src='" + fetch_aws(node_icon_url) + ".png' class='icon' onerror=\"this.src='wp_holder.png'\">" : "";
338338
api_push.push({
339339
"span": {
340340
"class": "optionwrap",

assets_js_bitrequest_payments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3040,7 +3040,7 @@ function download_wallet(currency) {
30403040
if (platform_url) {
30413041
const wallet_name = wallet_info.name,
30423042
wallet_website = wallet_info.website,
3043-
wallet_icon = is_lightning ? "<img src='img_logos_btc-lnd.png' class='wallet_icon'/>" : "<img src='" + get_wallet_icon_url(wallet_name) + "' class='wallet_icon'/>",
3043+
wallet_icon = is_lightning ? "<img src='img_logos_btc-lnd.png' class='wallet_icon'/>" : "<img src='" + get_wallet_icon_url(wallet_name) + "' class='wallet_icon' onerror=\"this.src='wp_holder.png'\">",
30443044
wallet_item = "<li><a href='" + wallet_website + "' target='_blank' class='exit app_dll'>" + wallet_icon + wallet_name + "</a><a href='" + platform_url + "' target='_blank' class='exit store_tag'>" + store_tag + "</a></li>";
30453045
wallet_container.append(wallet_item);
30463046
}

assets_js_bitrequest_rpcs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function create_rpc_node_element(api_list, is_live, node_id, node_config, is_sel
486486
display_name = setting_sub_address(node_name, stripped_url, node_config.custom) + vendor_string + version_string,
487487
node_icon_url = get_node_icon(node_name),
488488
default_class = custom ? "" : " default",
489-
node_icon = (node_icon_url) ? "<img src='" + fetch_aws(node_icon_url) + ".png' class='icon'>" : "",
489+
node_icon = (node_icon_url) ? "<img src='" + fetch_aws(node_icon_url) + ".png' class='icon' onerror=\"this.src='wp_holder.png'\">" : "",
490490
node_element = $("<div class='optionwrap" + status_class + selected_class + default_class + "' style='display:none' data-pe='none' title='" + stripped_url + "'><span data-value='" + node_url + "' data-pe='none'>" + node_icon + "<span class='cstat'>•</span> " + display_name + "</span><div class='opt_icon_box' data-pe='none'><div class='opt_icon icon-bin' data-pe='none'></div></div>");
491491
node_element.data(node_config).appendTo(api_list);
492492
node_element.slideDown(500);

assets_js_bitrequest_sockets.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,10 +1143,6 @@ function web3_erc20_websocket(socket_node, wallet_address, contract_address, soc
11431143
if (glob_let.sockets[socket_id]) {
11441144
return
11451145
}
1146-
if (!contract_address) {
1147-
web3_eth_websocket(socket_node, wallet_address);
1148-
return
1149-
}
11501146
const network_type = socket_node.network,
11511147
base_url = complete_url(socket_node.url),
11521148
infura_key = get_infura_apikey(base_url),

assets_styles_styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ audio {
7676
display: none;
7777
}
7878

79+
img[src=""] {
80+
display: none;
81+
}
82+
7983

8084
/* blur window */
8185

wp_holder.png

110 Bytes
Loading

0 commit comments

Comments
 (0)