mirror of
https://github.com/jsbin/jsbin.git
synced 2026-02-01 16:46:05 +00:00
Commented unused code
This commit is contained in:
parent
47e79289a7
commit
f53ac8a88e
@ -193,13 +193,13 @@ var $window = $(window),
|
||||
|
||||
$window.unload(unload);
|
||||
|
||||
window.addEventListener('storage', function (e) {
|
||||
if (e.storageArea === localStorage && e.key === 'settings') {
|
||||
console.log('updating from storage');
|
||||
console.log(JSON.parse(localStorage.settings));
|
||||
jsbin.settings = JSON.parse(localStorage.settings);
|
||||
}
|
||||
});
|
||||
// window.addEventListener('storage', function (e) {
|
||||
// if (e.storageArea === localStorage && e.key === 'settings') {
|
||||
// console.log('updating from storage');
|
||||
// console.log(JSON.parse(localStorage.settings));
|
||||
// jsbin.settings = JSON.parse(localStorage.settings);
|
||||
// }
|
||||
// });
|
||||
|
||||
// hack for Opera because the unload event isn't firing to capture the settings, so we put it on a timer
|
||||
if ($.browser.opera) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user