@ -55,7 +55,6 @@
</svg>
</div>
<script>
document.getElementById("banner").innerText = "Opening Wallet for "+ location.host;
document.getElementById("close-auth").onclick = (e)=> {
window.ng_status_callback.write({status:"cancelled"});
};
@ -21,7 +21,7 @@ select_default_lang(()=>{return window.navigator.languages;}).then(() => {});
const origin = decodeURIComponent(location.search.substring(3));
document.getElementById("banner").innerText = "Opening Wallet for "+ new URL(origin).host;
async function rpc( method:string, args?: any) : Promise<any> {
const { readable, writablePort } = new RemoteReadableStream();
@ -22,6 +22,6 @@
>
<h1>Testing NextGraph Wallet and LDO in a Web App</h1>
<h2 id="result"></h2>
<script type="module" src="main.js"></script>
<script type="module" src="src/main.js"></script>
</body>
</html>
@ -19,6 +19,7 @@ init( async (event) => {
if (event.status == "cancelled") {
document.getElementById("result").innerText = "Login cancelled";
console.log("CANCELLED");
} else if (event.status == "loggedin") {