The checked-in code from custom-protocol-check.js is minified making it difficult to read through the logic and make updates.
I see a sibling file named custom-protocol-check.min.js which leads me to believe custom-protocol-check.js is not intended to be minified.