Skip to content

Commit 8ac791e

Browse files
author
peterdotjs
committed
Fixing bug.
1 parent 9f45315 commit 8ac791e

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

js/main_view.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@
7474
var updateCount = Number(localStorage.getItem('updateBadge'));
7575

7676
var curVersion = localStorage.getItem('version') || '',
77-
isOldVersion = (curVersion < '2.3.1' && curVersion !== '');
78-
79-
localStorage.setItem('version','2.3.1');
77+
isOldVersion = (curVersion < '2.3.2' && curVersion !== '');
8078

8179
if(!updateCount || isOldVersion){
8280
updateCount = 0;

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Tab Resize - split screen layouts",
33
"short_name": "Tab Resize",
4-
"version": "2.3.0",
4+
"version": "2.3.1",
55
"manifest_version": 2,
66
"minimum_chrome_version": "30",
77
"description": "Split Screen made easy. Resize the CURRENT tab and tabs to the RIGHT into layouts on separate windows. w/ Multi Monitor Support.",

public/tabResize.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ if(!deferTracking) {
140140
var curVersion = localStorage.getItem('version') || '',
141141
isOldVersion = (curVersion < '2.3.1' && curVersion !== '');
142142

143-
localStorage.setItem('version','2.3.1');
144-
145143
if(!updateCount || isOldVersion){
146144
updateCount = 0;
147145
localStorage.setItem('updateBadge',0);
@@ -382,11 +380,11 @@ if(!deferTracking) {
382380
resize.layout.addLayout(layoutType);
383381
resize.layout.processTabInfo($('.layout-' + layoutType));
384382
this.hideCustomMenu();
385-
}
383+
}
386384
} else {
387385
var orientation = getScaledOrientation(),
388386
scaledOption = getScaledOption();
389-
387+
390388
layoutType = scaledOption[0] + 'x' + scaledOption[1] + '-scale-' + orientation;
391389
resize.layout.addLayout(layoutType);
392390
resize.layout.processTabInfo($('.layout-' + layoutType));
@@ -396,7 +394,7 @@ if(!deferTracking) {
396394
},
397395

398396
/**
399-
* shows the scaled menu view
397+
* shows the scaled menu view
400398
*/
401399
showScaledMenu: function(){
402400
var orientation = getScaledOrientation(),
@@ -530,7 +528,7 @@ if(!deferTracking) {
530528
$('body').removeClass('update');
531529
$('.main-view').removeClass('inactive');
532530
localStorage.setItem('update-seen',true);
533-
localStorage.setItem('version','2.3.1');
531+
localStorage.setItem('version','2.3.2');
534532
},
535533

536534
/**
@@ -595,7 +593,7 @@ if(!deferTracking) {
595593
var $layouts = $('.resize-selector'),
596594
length = $layouts.length,
597595
index = 0,
598-
currentLayouts = [];
596+
currentLayouts = [];
599597

600598
for(;index<length;index++){
601599
currentLayouts.push($layouts.eq(index).attr('data-selector-type'));
@@ -729,7 +727,7 @@ if(!deferTracking) {
729727
//add in markup - styles will be added in less
730728
innerHtml += '<div title="New Tab" class="tab-layer tab-layer-'+ (tabNumber++) + '"><div class="fav-icon"></div></div>';
731729
}
732-
}
730+
}
733731
} else {
734732
innerHtml += '<div title="New Tab" class="tab-layer tab-layer-1"><div class="fav-icon"></div></div>' + '<div title="New Tab" class="tab-layer tab-layer-2"><div class="fav-icon"></div></div>';
735733
}
@@ -818,7 +816,7 @@ if(!deferTracking) {
818816
* @param {Number} width - width of table
819817
* @param {Number} height - height of table
820818
* @param {Number} scale - percentage of first col/row
821-
* @param {String} orientation - "vertical" or "horizontal"
819+
* @param {String} orientation - "vertical" or "horizontal"
822820
* @param {CanvasRenderingContext2D} context - 2D context of canvas object
823821
*/
824822
drawScaledTable: function(width, height, scale, orientation, context) {
@@ -935,7 +933,7 @@ if(!deferTracking) {
935933
resize.currentWindowTabs = tabs;
936934
} else {
937935
resize.currentWindowTabs = windowInfo.tabs;
938-
}
936+
}
939937
resize.layout.processTabInfo();
940938
});
941939
});

0 commit comments

Comments
 (0)