Fix #249 - use window.location hack to let people login from sandboxed iOS homescreen
This commit is contained in:
parent
806ffbab63
commit
e09d3a2c66
9 changed files with 48 additions and 13 deletions
|
@ -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');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue