mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06:00
isMac use includes
This commit is contained in:
parent
1750f51d45
commit
3662859798
@ -14,7 +14,7 @@ import 'codemirror/mode/xml/xml'
|
|||||||
|
|
||||||
|
|
||||||
// Some variables
|
// Some variables
|
||||||
var isMac = /Mac/.test(navigator.platform);
|
const isMac = navigator.platform.includes('Mac');
|
||||||
|
|
||||||
// Mapping of actions that can be bound to keyboard shortcuts or toolbar buttons
|
// Mapping of actions that can be bound to keyboard shortcuts or toolbar buttons
|
||||||
var bindings = {
|
var bindings = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user