Merge pull request #1045 from ihoru/master
Open links starting with https://telegram.me/ in the same window
This commit is contained in:
commit
840705e6a8
@ -4229,7 +4229,11 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
type: 'JUMP_EXT_URL',
|
type: 'JUMP_EXT_URL',
|
||||||
url: url
|
url: url
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
window.open(url, '_blank');
|
var target = '_blank';
|
||||||
|
if (url.search('https://telegram.me/') === 0) {
|
||||||
|
target = '_self';
|
||||||
|
}
|
||||||
|
window.open(url, target);
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user