revert: js

revert until I figured out a better way if detecting client. https://github.com/DarrenOfficial/dpaste/issues/196
This commit is contained in:
Darren 2022-04-08 07:19:47 -05:00 committed by GitHub
parent 6017a208e5
commit 3d4baa46dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
// -----------------------------------------------------------------------------
// Add data-platform to the body tag to show platform related shortcuts
// -----------------------------------------------------------------------------
const isMac = navigator.userAgentData.platform.includes('Mac') !== -1;
const isMac = navigator.platform.indexOf('Mac') !== -1;
document.body.dataset.platform = isMac ? 'mac' : 'win';
// -----------------------------------------------------------------------------