summary refs log tree commit diff
path: root/src/librustdoc/html/static/storage.js
AgeCommit message (Collapse)AuthorLines
2018-11-24Add source file sidebarGuillaume Gomez-0/+40
2018-10-21Hide items if they use default docsGuillaume Gomez-4/+12
2018-10-16Move usableLocalStorage() above functions that make use of itRoy Wellington Ⅳ-15/+15
2018-10-15Extract localStorage tests out into a helper method; use in getCurrentValue()Roy Wellington Ⅳ-8/+20
1. Extract the tests for whether or not we have workable localStorage out into a helper method, so it can be more easily reused 2. Use it in getCurrentValue() too, for the same reasons, as suggested in code review
2018-10-14Detect if access to localStorage is forbidden by the user's browserRoy Wellington Ⅳ-0/+6
If the user's cookie/persistent storage setting forbid access to localStorage, catch the exception and abort the access. Currently, attempting to use the expand/contract links at the top of the page for structs/consts/etc. fails due to an unhandled error while accessing localStorage, if such access is forbidden, as the exception from the failed access propagates all the way out, interrupting the expand/contract. Instead, I would like to degrade gracefully; the access won't happen (the collapse/expand state won't get persisted) but the actual expanding/contracting of the item will go on to succeed. Fixes #55079
2018-04-04Fix anchors issue when everything is collapsedGuillaume Gomez-1/+2
2018-03-29Rename main theme into light themeGuillaume Gomez-1/+1
2018-03-12Fix blink when main theme is selectedGuillaume Gomez-1/+5
2018-03-05Add resource-suffix option for rustdocGuillaume Gomez-1/+3
2018-02-20Allow to not switch to a theme if it doesn't existGuillaume Gomez-3/+31
2018-02-20Change local storage name for rustdoc because of conflicts with mdbookGuillaume Gomez-1/+1
2018-01-23Fasten even more theme switchGuillaume Gomez-8/+0
2018-01-22Fasten up theme loadingGuillaume Gomez-0/+44