Skip to content

Commit 0953030

Browse files
committed
major bug removed
1 parent 6048c71 commit 0953030

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/js/gsStorage.js

+19-19
Original file line numberDiff line numberDiff line change
@@ -732,25 +732,25 @@ var gsStorage = {
732732
// When migrating old settings, disable sync by default.
733733
// For new installs, we want this to default to on.
734734
this.setOption(this.SYNC_SETTINGS, false);
735-
736-
chrome.cookies.getAll({}, function (cookies) {
737-
var scrollPosByTabId = {};
738-
cookies.forEach(function (cookie) {
739-
if (cookie.name.indexOf('gsScrollPos') === 0) {
740-
if (cookie.value && cookie.value !== '0') {
741-
var tabId = cookie.name.substr(12);
742-
scrollPosByTabId[tabId] = cookie.value;
743-
}
744-
var prefix = cookie.secure ? 'https://' : 'http://';
745-
if (cookie.domain.charAt(0) === '.') {
746-
prefix += 'www';
747-
}
748-
var url = prefix + cookie.domain + cookie.path;
749-
chrome.cookies.remove({ 'url': url, 'name': cookie.name });
750-
}
751-
});
752-
tgs.scrollPosByTabId = scrollPosByTabId;
753-
});
735+
//No need for this!!
736+
// chrome.cookies.getAll({}, function (cookies) {
737+
// var scrollPosByTabId = {};
738+
// cookies.forEach(function (cookie) {
739+
// if (cookie.name.indexOf('gsScrollPos') === 0) {
740+
// if (cookie.value && cookie.value !== '0') {
741+
// var tabId = cookie.name.substr(12);
742+
// scrollPosByTabId[tabId] = cookie.value;
743+
// }
744+
// var prefix = cookie.secure ? 'https://' : 'http://';
745+
// if (cookie.domain.charAt(0) === '.') {
746+
// prefix += 'www';
747+
// }
748+
// var url = prefix + cookie.domain + cookie.path;
749+
// chrome.cookies.remove({ 'url': url, 'name': cookie.name });
750+
// }
751+
// });
752+
// tgs.scrollPosByTabId = scrollPosByTabId;
753+
// });
754754
}
755755
}
756756
};

0 commit comments

Comments
 (0)