Skip to content

Commit c7a6eda

Browse files
authored
Merge pull request #1532 from Scottcjn/pi-sandbox-true-testnet
Pi: sandbox=true for testnet app
2 parents 2fc55ba + 00c69d9 commit c7a6eda

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bottube_templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,10 +824,10 @@
824824
<!-- Pi.init sandbox=false in the REAL mobile Pi Browser. sandbox:true is ONLY for the
825825
desktop sandbox (sandbox.minepi.com); testnet vs mainnet is the app's network +
826826
wallet, not this flag. sandbox:true here broke payments auth ("open in sandbox"). -->
827-
<script>window.PI_SANDBOX = false;</script>
827+
<script>window.PI_SANDBOX = true;</script>
828828
{% if current_user %}<script>window.PI_AUTO_SIGNIN = false;</script>{% endif %}
829829
<script src="https://sdk.minepi.com/pi-sdk.js"></script>
830-
<script src="/static/pi_auth.js?v=13" defer></script>
830+
<script src="/static/pi_auth.js?v=14" defer></script>
831831
<!-- Sophia Elya chat widget (same-origin: logged-in humans recognized + can generate) -->
832832
<script src="/static/sophia_widget.js?v=2" data-endpoint="/api/sophia" data-accent="#3ea6ff" data-title="Chat with Sophia Elya" defer></script>
833833
</head>

bottube_templates/pi_home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{% block content %}
4747
<!-- TESTNET-only Pi app → init the Pi SDK in sandbox/testnet mode (matches server
4848
PI_SANDBOX=1). Set before the deferred pi_auth.js / pi_pay.js execute. -->
49-
<script>window.PI_SANDBOX = false;</script>
49+
<script>window.PI_SANDBOX = true;</script>
5050
<div class="pi-wrap">
5151
<div class="pi-hero">
5252
<span class="pi-badge">π PI NETWORK</span>

0 commit comments

Comments
 (0)