0
0
Fork 0

Fix #249 - use window.location hack to let people login from sandboxed iOS homescreen

This commit is contained in:
Eugen Rochko 2016-12-21 00:13:13 +01:00
parent 806ffbab63
commit e09d3a2c66
9 changed files with 48 additions and 13 deletions

View file

@ -1,7 +1,7 @@
import emojify from './components/emoji'
$(() => {
$.each($('.entry .content, .entry .status__content, .display-name, .name, .account__header__content'), (_, content) => {
$.each($('.entry .content, .entry .status__content, .status__display-name, .display-name, .name, .account__header__content'), (_, content) => {
const $content = $(content);
$content.html(emojify($content.html()));
});
@ -17,4 +17,13 @@ $(() => {
$('.media-spoiler').on('click', e => {
$(e.target).hide();
});
$('.webapp-btn').on('click', e => {
console.log(e);
if (e.button === 0) {
e.preventDefault();
window.location.href = $(e.target).attr('href');
}
});
});