1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Added device registration information during authentication

This commit is contained in:
Kyle Spearrin
2017-01-25 20:42:09 -05:00
parent 5a20f9de01
commit 4be033df71
3 changed files with 45 additions and 25 deletions

View File

@@ -64,6 +64,23 @@ function initUtilsService() {
return this.analyticsIdCache;
}
UtilsService.prototype.getDeviceType = function () {
if (this.isChrome()) {
return 2;
}
else if (this.isFirefox()) {
return 3;
}
else if (this.isEdge()) {
return 5;
}
else if (this.isOpera()) {
return 4;
}
return -1;
}
UtilsService.prototype.initListSectionItemListeners = function (doc, angular) {
if (!doc) {
throw 'doc parameter required';