mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 07:03:06 +11:00
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:
parent
6017a208e5
commit
3d4baa46dd
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue