mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
💄 Add semicolon to global-shortcut code example
This keeps this line consistent with the rest of the documentation.
This commit is contained in:
@@ -16,7 +16,7 @@ app.on('ready', function() {
|
|||||||
// Register a 'ctrl+x' shortcut listener.
|
// Register a 'ctrl+x' shortcut listener.
|
||||||
var ret = globalShortcut.register('ctrl+x', function() {
|
var ret = globalShortcut.register('ctrl+x', function() {
|
||||||
console.log('ctrl+x is pressed');
|
console.log('ctrl+x is pressed');
|
||||||
})
|
});
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
console.log('registration failed');
|
console.log('registration failed');
|
||||||
|
|||||||
Reference in New Issue
Block a user