💄 Fix warnings of coffeelint.
This commit is contained in:
parent
f3eef6cc2e
commit
f4f42b30ee
1 changed files with 6 additions and 6 deletions
|
@ -26,7 +26,7 @@ atom.browserMainParts =
|
||||||
global.__atom = atom
|
global.__atom = atom
|
||||||
|
|
||||||
# Add browser/api/lib to require's search paths,
|
# Add browser/api/lib to require's search paths,
|
||||||
# which contains javascript part of Atom's built-in libraries.
|
# which contains javascript part of Atom's built-in libraries.
|
||||||
globalPaths = require('module').globalPaths
|
globalPaths = require('module').globalPaths
|
||||||
globalPaths.push path.join process.resourcesPath, 'browser', 'api', 'lib'
|
globalPaths.push path.join process.resourcesPath, 'browser', 'api', 'lib'
|
||||||
|
|
||||||
|
@ -38,11 +38,11 @@ process.on 'uncaughtException', (error) ->
|
||||||
# Show error in GUI.
|
# Show error in GUI.
|
||||||
message = error.stack ? "#{error.name}: #{error.message}"
|
message = error.stack ? "#{error.name}: #{error.message}"
|
||||||
require('dialog').showMessageBox
|
require('dialog').showMessageBox
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
title: 'An javascript error occured in the browser'
|
title: 'An javascript error occured in the browser'
|
||||||
message: 'uncaughtException'
|
message: 'uncaughtException'
|
||||||
detail: message
|
detail: message
|
||||||
buttons: ['OK']
|
buttons: ['OK']
|
||||||
|
|
||||||
# Load the RPC server.
|
# Load the RPC server.
|
||||||
require './rpc-server.js'
|
require './rpc-server.js'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue