Log in to the Vtimes wallet to complete the visionweb integration
VisionWeb instance visionweb integrated into the browser code example
visionweb
_bindVisionWeb() {if(window.visionWeb !==undefined)logger.warn('VisionWeb is already initiated. Vtimes will overwrite the current instance');constvisionWeb=newVisionWeb(newProxiedProvider(),newProxiedProvider(),newProxiedProvider() );visionWeb.extension = {}; //add a extension object for black listvisionWeb.extension.setVisited=(href)=>{this.setVisited(href); };this.proxiedMethods = { setAddress:visionWeb.setAddress.bind(visionWeb), sign:visionWeb.vs.sign.bind(visionWeb) };visionWeb.vs.sign= (...args) => (this.sign(...args) );window.visionWeb = visionWeb; },
Use the injected visionweb instance directly on the browser side