fixed example and removed dist

master
Niko PLP 2 days ago
parent ba7ef29c42
commit 79c2d2fa46
  1. 1
      helpers/net-auth/index.html
  2. 2
      helpers/net-auth/src/main.ts
  3. 2
      ng-sdk-js/example-webapp-vite/index.html
  4. 1
      ng-sdk-js/example-webapp-vite/src/main.js

@ -55,7 +55,6 @@
</svg> </svg>
</div> </div>
<script> <script>
document.getElementById("banner").innerText = "Opening Wallet for "+ location.host;
document.getElementById("close-auth").onclick = (e)=> { document.getElementById("close-auth").onclick = (e)=> {
window.ng_status_callback.write({status:"cancelled"}); 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)); 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> { async function rpc( method:string, args?: any) : Promise<any> {
const { readable, writablePort } = new RemoteReadableStream(); const { readable, writablePort } = new RemoteReadableStream();

@ -22,6 +22,6 @@
> >
<h1>Testing NextGraph Wallet and LDO in a Web App</h1> <h1>Testing NextGraph Wallet and LDO in a Web App</h1>
<h2 id="result"></h2> <h2 id="result"></h2>
<script type="module" src="main.js"></script> <script type="module" src="src/main.js"></script>
</body> </body>
</html> </html>

@ -19,6 +19,7 @@ init( async (event) => {
if (event.status == "cancelled") { if (event.status == "cancelled") {
document.getElementById("result").innerText = "Login cancelled";
console.log("CANCELLED"); console.log("CANCELLED");
} else if (event.status == "loggedin") { } else if (event.status == "loggedin") {

Loading…
Cancel
Save