isAppleTabletOnIos13 = function (navigator) {
    return (typeof navigator !== 'undefined' &&
        navigator.platform === 'MacIntel' &&
        typeof navigator.maxTouchPoints === 'number' &&
        navigator.maxTouchPoints > 1 &&
        typeof MSStream === 'undefined');
}
Creates a canvas element of the given size.
This canvas is created using the browser's native canvas element.
@param width - width of the canvas
@param height - height of the canvas