Skip to content

Commit

Permalink
do not require internal modules
Browse files Browse the repository at this point in the history
  • Loading branch information
taroxd committed Dec 22, 2015
1 parent 0fdc347 commit 68b6bca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions env-loader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
window.remote = require('remote');

window.remote = require('electron').remote;
window.ROOT = remote.getGlobal('ROOT');

window.MODULE_PATH = remote.getGlobal('MODULE_PATH');

require('module').globalPaths.push(MODULE_PATH);
Expand Down
4 changes: 2 additions & 2 deletions index.cjsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{React, ReactBootstrap, FontAwesome} = window

{Button} = ReactBootstrap
remote = require 'remote'
{remote} = require 'electron'
windowManager = remote.require './lib/window'

path = require 'path'
Expand Down
1 change: 1 addition & 0 deletions item-info.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ try
document.title = __ 'Equipment Info'

loadTheme config.get('poi.theme', '__default__')
$('#font-awesome').setAttribute 'href', "#{ROOT}/components/font-awesome/css/font-awesome.min.css"

require './views'
2 changes: 0 additions & 2 deletions views/index.cjsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

$('#font-awesome')?.setAttribute 'href', "#{ROOT}/components/font-awesome/css/font-awesome.min.css"

ItemInfoTableArea = require './item-info-table-area'
ItemInfoCheckboxArea = require './item-info-checkbox-area'

Expand Down

0 comments on commit 68b6bca

Please sign in to comment.