Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid the NS_ERROR_DOM_QUOTA_REACHED caused by RL #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion mobile-sidebar.js
Expand Up @@ -20,8 +20,11 @@ $(function () {
// only 320x533 or so. And let's not even get into the iPhone 6 Plus!

function showSidebar() {
try {
localStorage['mw-mobile-sidebar-state'] = 'show';

} catch (e) {
// [[phab:T66721]] causes NS_ERROR_DOM_QUOTA_REACHED on every page load
}
var $content = $('#content');

var top = $content.position().top,
Expand Down Expand Up @@ -88,7 +91,11 @@ $(function () {
}

function hideSidebar() {
try {
localStorage['mw-mobile-sidebar-state'] = 'hidden';
} catch (e) {
// [[phab:T66721]] causes NS_ERROR_DOM_QUOTA_REACHED on every page load
}
$('#mobile-sidebar').remove();
$('#content').css('margin-right', '0');
}
Expand Down