I'm currently working on creating a page that authenticates users with Waveskeeper. I have successfully installed the Waveskeeper addon on Chrome, but I keep encountering an error: ReferenceError: Waves is not defined.
I've attempted to use both Chrome and Brave browsers, but the same error persists.
$(document).ready(function() {
console.log('Start');
console.log(Waves);
WavesKeeper.initialPromise
.then((keeperApi) => {
/*...initialize app*/
console.log(WavesKeeper);
keeperApi.publicState().then(state => startApp(state));
})
function startApp(state) {
$('#address').text(state.account.address);
$('#balance').text(state.account.balance.available * 1e-8);
$('#network').text(state.network.code);
}