Browse Source

this fixes reload button

pull/2/head
gorhill 10 years ago
parent
commit
5f177a2e30
  1. 5
      src/js/popup.js

5
src/js/popup.js

@ -50,7 +50,6 @@ var matrixSnapshot = {};
var groupsSnapshot = []; var groupsSnapshot = [];
var allHostnamesSnapshot = 'do not leave this initial string empty'; var allHostnamesSnapshot = 'do not leave this initial string empty';
var targetTabId;
var matrixCellHotspots = null; var matrixCellHotspots = null;
var matrixHeaderPrettyNames = { var matrixHeaderPrettyNames = {
@ -1108,7 +1107,7 @@ function revertAll() {
function buttonReloadHandler() { function buttonReloadHandler() {
messager.send({ messager.send({
what: 'forceReloadTab', what: 'forceReloadTab',
tabId: targetTabId
tabId: matrixSnapshot.tabId
}); });
} }
@ -1174,7 +1173,7 @@ var onMatrixSnapshotReady = function(response) {
var queryMatrixSnapshot = function(callback) { var queryMatrixSnapshot = function(callback) {
var request = { var request = {
what: 'matrixSnapshot', what: 'matrixSnapshot',
tabId: targetTabId,
tabId: matrixSnapshot.tabId,
tabURL: matrixSnapshot.url tabURL: matrixSnapshot.url
}; };
var snapshotReceived = function(response) { var snapshotReceived = function(response) {

Loading…
Cancel
Save