This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install libnss3 libatk1.0-0 libatk-bridge2.0-dev libcups2 libxcomposite-dev libxdamage1 libxrandr2 libgbm1 libxkbcommon-x11-0 libpangocairo-1.0-0 libasound2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const deferredsAllSettled = deferreds => { | |
const settlements = []; | |
deferreds.forEach(deferred => { | |
const settlement = jQuery.Deferred(); | |
deferred.always(settlement.resolve); | |
settlements.push(settlement); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const isAppleTouchDevice = ({userAgent, platform, maxTouchPoints} = window.navigator) => { | |
const isLegacyIOS = /iPad|iPhone|iPod/.test(userAgent); | |
const isMultiTouchMacAkaIOS13 = platform === "MacIntel" && maxTouchPoints > 1; | |
return isLegacyIOS || isMultiTouchMacAkaIOS13; | |
}; |