mirror of
https://github.com/zotero/zotero.git
synced 2026-10-12 03:48:16 +00:00
Additional safety check when checking for persisted item pane state
I don't think there's any way for this to happen short of manual preference editing, and the pane width would have to be exactly 250px, and it's pretty harmless anyway, but might as well be safe.
This commit is contained in:
parent
e8b6171828
commit
fcdb4fb4cb
1 changed files with 1 additions and 0 deletions
|
|
@ -4067,6 +4067,7 @@ var ZoteroPane = new function()
|
|||
if (el.id == 'zotero-items-splitter') continue;
|
||||
// And don't restore to min-width if splitter was collapsed
|
||||
if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250
|
||||
&& 'zotero-items-splitter' in serializedValues
|
||||
&& serializedValues['zotero-items-splitter'].state == 'collapsed') {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue