Skip to content

Commit

Permalink
Fixed popup border initialisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
romain.vallet committed Jan 27, 2012
1 parent 3837a7d commit 0120e02
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/hoverzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,10 +839,13 @@ var hoverZoom = {

function openImageInWindow() {
chrome.extension.sendRequest({action: 'getItem', id: 'popupBorder'}, function(data) {
var popupBorder, createData;
var createData,
popupBorder = {width: 16, height: 38};

try { popupBorder = JSON.parse(data); }
catch(e) { popupBorder = {width: 16, height: 36}; }
if (data) {
try { popupBorder = JSON.parse(data); }
catch(e) { }
}

createData = {
url: imgDetails.url,
Expand Down

0 comments on commit 0120e02

Please sign in to comment.