forked from benderjs/browser-launcher2
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mitchell Hentges
committed
Feb 29, 2016
1 parent
d71fa27
commit 5209a62
Showing
7 changed files
with
15 additions
and
36 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 +1,15 @@ | ||
exports.safari = require( './safari' ); | ||
var util = require('./util'); | ||
|
||
function browser(id, versionKey) { | ||
return { | ||
path: util.find.bind(null, id), | ||
version: util.getInfoKey(null, id, versionKey) | ||
}; | ||
} | ||
|
||
exports.safari = browser('com.apple.Safari', 'CFBundleShortVersionString'); | ||
exports.firefox = require( './firefox' ); | ||
exports.chrome = exports[ 'google-chrome' ] = require( './chrome' ); | ||
exports.chromium = require( './chromium' ); | ||
exports.canary = exports[ 'chrome-canary' ] = exports[ 'google-chrome-canary' ] = require( './canary' ); | ||
exports.opera = require( './opera' ); | ||
exports.chrome = exports[ 'google-chrome' ] = browser('com.google.Chrome', 'KSVersion'); | ||
exports.chromium = browser('org.chromium.Chromium', 'CFBundleShortVersionString'); | ||
exports.canary = exports[ 'chrome-canary' ] = exports[ 'google-chrome-canary' ] = browser('com.google.Chrome.canary', 'KSVersion'); | ||
exports.opera = browser('com.operasoftware.Opera', 'CFBundleVersion'); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -72,4 +72,4 @@ function getInfoKey(bundleId, key, callback) { | |
callback(null, data[key]); | ||
}); | ||
}); | ||
} | ||
} |