From 5af3cf3fb9857cbc48f41f372b2ba12a3437f8ba Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 4 Jan 2016 00:47:48 -0400 Subject: [PATCH] Simplify drive letter / device conditional The `drivelist` module includes a new property called `name` in `2.0.7` that resolves to the drive letter (mount point) on Windows, and to the drive otherwise. --- build/browser/app.js | 2 -- lib/browser/app.js | 2 -- lib/index.html | 15 ++------------- package.json | 2 +- 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/build/browser/app.js b/build/browser/app.js index b12e2498..b0e36ba4 100644 --- a/build/browser/app.js +++ b/build/browser/app.js @@ -72,8 +72,6 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState console.debug('Drive selected: ' + drive.device); }; - this.platform = window.process.platform; - this.burn = function(image, drive) { // Stop scanning drives when burning diff --git a/lib/browser/app.js b/lib/browser/app.js index bfa2c34a..264ab437 100644 --- a/lib/browser/app.js +++ b/lib/browser/app.js @@ -71,8 +71,6 @@ app.controller('AppController', function($q, DriveScannerService, SelectionState console.debug('Drive selected: ' + drive.device); }; - this.platform = window.process.platform; - this.burn = function(image, drive) { // Stop scanning drives when burning diff --git a/lib/index.html b/lib/index.html index 7e0391cc..cb0060ac 100644 --- a/lib/index.html +++ b/lib/index.html @@ -54,15 +54,7 @@ @@ -73,10 +65,7 @@ -
- - -
+
diff --git a/package.json b/package.json index 71e4ea53..45d2d2f1 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "angular-ui-bootstrap": "^0.14.2", "bluebird": "^3.0.5", "bootstrap-sass": "^3.3.5", - "drivelist": "^2.0.4", + "drivelist": "^2.0.7", "electron-window": "^0.6.0", "flexboxgrid": "^6.3.0", "is-elevated": "^1.0.0",