Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Feature/disable generate on ipad #1690

Merged
merged 4 commits into from
Mar 21, 2018

Conversation

gamalielhere
Copy link
Collaborator

@gamalielhere gamalielhere commented Mar 15, 2018

  • pop a modal when browser detects iphone or ipad
  • disable input and generate button when iphone or ipad

$scope.isMobileApple = function() {

if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
if (!!window.indexedDB || !!window.SpeechSynthesisUtterance || !!window.webkitAudioContext ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is if condition is redundant, as it is returning true anyway

}

if(globalFuncs.localStorage.getItem('awareAppleMobile') === null && $scope.isMobileApple()) {
$scope.appleMobileModal.open();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'll be better to open the modal when they click generate, otherwise users might think the whole website is not available for iPhone/ipad

@gamalielhere gamalielhere merged commit f46991c into mercury Mar 21, 2018
@gamalielhere gamalielhere deleted the feature/disable-generate-on-ipad branch March 21, 2018 23:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants