Skip to content

Commit

Permalink
Always load local Nimiq build
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Dec 11, 2024
1 parent 2721179 commit 7f9bc49
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 381 deletions.
358 changes: 0 additions & 358 deletions public/albatross/lib/index.d.ts

This file was deleted.

14 changes: 6 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@
/** @type {Promise<Nimiq> | undefined} */
let initPromise;

if (sessionStorage.getItem('debug')) {
window.loadAlbatross = async function() {
return initPromise || (initPromise = new Promise(async resolve => {
await init();
resolve(Nimiq);
}));
}
}
window.loadAlbatross = async function() {
return initPromise || (initPromise = new Promise(async resolve => {
await init();
resolve(Nimiq);
}));
};
</script>
</head>

Expand Down
4 changes: 1 addition & 3 deletions src/components/staking/StakingGraphPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ export default defineComponent({
? activeValidator.value.name
: activeValidator.value!.address;
const { Address, TransactionBuilder } = sessionStorage.getItem('debug')
? await window.loadAlbatross()
: await import('@nimiq/core');
const { Address, TransactionBuilder } = await window.loadAlbatross();
const client = await getNetworkClient();
try {
Expand Down
Loading

0 comments on commit 7f9bc49

Please sign in to comment.