mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-01 21:42:28 +02:00
isMac use includes
This commit is contained in:
parent
1750f51d45
commit
3662859798
|
@ -14,7 +14,7 @@ import 'codemirror/mode/xml/xml'
|
|||
|
||||
|
||||
// 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
|
||||
var bindings = {
|
||||
|
|
Loading…
Reference in a new issue