EmpowerPlastic/empowerchain

The "Create proof" button is blocked

toolfun opened this issue · 5 comments

Certify/Verify documents app on https://testnet.proof-of-existence.com/

The Create proof button is blocked when the browser ad blocker extension is enabled.
If you disable the extension and reload the page, the button is pressed and the action is performed. And vice versa. Tested with uBlock Origin, AdBlocker Ultimate.

@PiranavanShanmugavadivelu see if you can reproduce this and figure out why this would be.

I reproduced this using uBlock Origin. Trying to find out a way to fix this. Any idea on this @gjermundgaraba @ba1ciu
image

Hmm, not sure. It is strange that an adblocker would block web assembly 🤔 We might need to have a backup sha256 function from javascript available when "window.empSha256" is not found.

When you're using the adblocker, can you see if the web assembly download is being blocked in the network tab?

Ya, Exactly it is blocking the file https://testnet.proof-of-existence.com/hash.wasm

image

I assume this will block anything, but try to rename it from hash.wasm to empSha256.wasm and see if it still blocks it. If it does, we should implement an alternative when window.empSha256 is undefined.