No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Detect iOS Multitask Mode in Safari

  detectIOSMultitask(function(data) {
    // data.event = 'load', 'enter', or 'exit'
    console.log( data['event'], data['width'], data['height'] );
    // Example Google Analytics event
    ga('send', 'event', 'iOS Multitask', data['event'], data['width'] + 'x' + data['height'], {'nonInteraction': 1});