forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RocketChat#76 from RocketChat/update
Update Electron and using Webviews
- Loading branch information
Showing
32 changed files
with
12,104 additions
and
3,894 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { start } from './scripts/start'; | ||
import './menus'; | ||
|
||
window.$ = window.jQuery = require('./vendor/jquery-1.12.0'); | ||
start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Simple module exposes environment variables to rest of the code. | ||
|
||
import jetpack from 'fs-jetpack'; | ||
|
||
var app; | ||
if (process.type === 'renderer') { | ||
app = require('electron').remote.app; | ||
} else { | ||
app = require('electron').app; | ||
} | ||
var appDir = jetpack.cwd(app.getAppPath()); | ||
|
||
var manifest = appDir.read('package.json', 'json'); | ||
|
||
export default manifest.env; |
Oops, something went wrong.