/**
 * Created by tom on 08/07/16.
 */

let location = window.location;
let isWebsite = location.protocol.indexOf('http') !== -1 && location.host.indexOf('localhost') === -1;

if(!isWebsite) {
    /* Source: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule */
    var styleElement = document.createElement('style'),
        styleSheet;

    /* Append style element to head */
    document.head.appendChild(styleElement);

    /* Grab style sheet */
    styleSheet = styleElement.sheet;
    styleSheet.insertRule('*{-webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none;}', 0);
}
/**
 * Created by tom on 08/07/16.
 */

var currentLocation = window.location;
var isWebsite = currentLocation.protocol.indexOf('http') !== -1 && currentLocation.host.indexOf('localhost') === -1;



if(!isWebsite) {
    /* Source: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule */
    var styleElement = document.createElement('style'),
        styleSheet;

    /* Append style element to head */
    document.head.appendChild(styleElement);
    console.log("Appending");

    /* Grab style sheet */
    styleSheet = styleElement.sheet;
    styleSheet.insertRule('*{-webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none;}', 0);
}

Patch hot fix to work on mobile
Patch hot fix to work on mobile
