From 99b2263a2ccb0d1fa99ac01f828e8fa1465d4c02 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Russo Date: Tue, 21 Aug 2012 08:56:18 -0700 Subject: Fix: Removing version check for blob builder This apparently now magically started working through an update in Chrome 21, hence rendering the need for the old method useless. --- js/io/system/chromeapi.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'js') diff --git a/js/io/system/chromeapi.js b/js/io/system/chromeapi.js index b13dd9de..f9ab2d12 100644 --- a/js/io/system/chromeapi.js +++ b/js/io/system/chromeapi.js @@ -136,12 +136,8 @@ exports.ChromeApi = Montage.create(Object.prototype, { mime = 'text/'+type; break; } - //TODO: Remove version checking once Chrome version 22 is stable - if (version > 21) { - blob = new Blob([new Uint8Array(content)], {type: type}); - } else { - blob = new Blob([content], {type: type}); - } + // + blob = new Blob([new Uint8Array(content)], {type: type}); // writer.write(blob); // -- cgit v1.2.3 From a1d70077b5f1fafc965b4325283f29b08264c418 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Wed, 22 Aug 2012 10:31:02 -0700 Subject: Update: Cleaning up --- js/io/system/chromeapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/io/system/chromeapi.js b/js/io/system/chromeapi.js index f9ab2d12..ba0ed3f4 100644 --- a/js/io/system/chromeapi.js +++ b/js/io/system/chromeapi.js @@ -96,7 +96,7 @@ exports.ChromeApi = Montage.create(Object.prototype, { // f.createWriter(function(writer) { // - var mime, blob, type = filePath.split('.'), version = parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10); + var mime, blob, type = filePath.split('.'); //version = parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10); type = type[type.length-1]; switch (type) { case 'bmp': -- cgit v1.2.3