Fix #249 - use window.location hack to let people login from sandboxed iOS homescreen
This commit is contained in:
		@@ -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');
 | 
			
		||||
    }
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user