Skip to content

Commit 52294cd

Browse files
committed
Merge remote-tracking branch 'benma/disablesafello'
2 parents b2f5921 + 579e726 commit 52294cd

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

backend/coins/btc/exchange.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
func (account *Account) SafelloBuySupported() bool {
2424
switch account.coin.Net().Net {
2525
case chaincfg.MainNetParams.Net, chaincfg.TestNet3Params.Net:
26-
return true
26+
return false // Safello suspended services, maybe temporarily, so we keep this around for a bit.
2727
}
2828
return false
2929
}

frontends/qt/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class RequestInterceptor : public QWebEngineUrlRequestInterceptor {
5353
if (info.requestUrl().scheme() == "qrc" || info.requestUrl().scheme() == "blob") {
5454
return;
5555
}
56+
#if 0 // Safello suspended services, maybe temporarily, so we keep this around for a bit.
5657
auto currentUrl = mainPage->requestedUrl().toString();
5758
bool onBuyPage = currentUrl.contains(QRegularExpression("^qrc:/account/[^/]+?/buy$"));
5859
// We treat the buy page specially, as we need to allow Safello to load in the iframe, as
@@ -66,7 +67,7 @@ class RequestInterceptor : public QWebEngineUrlRequestInterceptor {
6667
}
6768
return;
6869
}
69-
70+
#endif
7071
std::cerr << "Blocked: " << info.requestUrl().toString().toStdString() << std::endl;
7172
info.block(true);
7273
};

frontends/web/src/routes/settings/settings.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ class Settings extends Component<Props, State> {
209209
this.setState({ activeProxyDialog: false });
210210
}
211211

212+
/*
212213
private setServicesConfig = servicesConfig => {
213214
setConfig({
214215
backend: { services: servicesConfig },
@@ -227,6 +228,7 @@ class Settings extends Component<Props, State> {
227228
services.safello = target.checked;
228229
this.setServicesConfig(services);
229230
}
231+
*/
230232

231233
private handleRestartDismissMessage = () => {
232234
this.setState({ restart: false });
@@ -408,6 +410,7 @@ class Settings extends Component<Props, State> {
408410
</div>
409411
</div>
410412

413+
{/* Safello suspended services, maybe temporarily, so we keep this around for a bit.
411414
<div className="column column-1-3">
412415
<div class="subHeaderContainer">
413416
<div class="subHeader">
@@ -430,6 +433,7 @@ class Settings extends Component<Props, State> {
430433
431434
</div>
432435
</div>
436+
*/}
433437
</div>
434438
{
435439
restart && (

0 commit comments

Comments
 (0)