Register protocol handler only once
Merge pull request #210 from digital-dreamer/fix-protocol-registration

Fix custom protocol registration