Fixed register protocol

This commit is contained in:
Igor Zhukov 2014-12-16 14:30:33 -08:00
parent 5a658f919a
commit dc9de1396d

View File

@ -4182,6 +4182,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
started = true;
try {
navigator.registerProtocolHandler('tg', '#im?tgaddr=%s', 'Telegram Web');
} catch (e) {}
try {
navigator.registerProtocolHandler('web+tg', '#im?tgaddr=%s', 'Telegram Web');
} catch (e) {}