-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get build info from chrome.management API #113
Changes from all commits
74de1bb
6931da0
6327c0a
597dcc9
4fcc270
0146ca3
42a8f2c
df82b74
0f8136c
ccb483c
2112561
2516085
efed18d
c3872eb
2773282
2509383
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,4 +272,4 @@ $(function() { | |
$("#help_hide_explanation").slideToggle(); | ||
} | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
// Set to true to get noisier console.log statements | ||
var VERBOSE_DEBUG = false; | ||
|
||
// Global variable for detection of Opera, Edge and Firefox | ||
// Global variable for browser detection | ||
var OPERA = navigator.userAgent.indexOf("OPR") > -1; | ||
var EDGE = navigator.userAgent.indexOf("Edge") > -1; | ||
var FIREFOX = navigator.userAgent.indexOf("Firefox") > -1; | ||
var CHROME = !OPERA && !EDGE && !FIREFOX && !SAFARI; // SAFARI is defined in port.js | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there really no reliable way of detecting if it's Chrome without just assuming it's the default? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kpeckett This is the safest way, how to detect Chrome afaik. |
||
|
||
// Edge uses "browser" namespace for its API | ||
if (EDGE) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't handling potential future copies, which is what the original code was made for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kpeckett You are right, I will add
chrome.runtime.id
handling in the next commit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kpeckett Please review changes in the latest commit (handling potential future copies).