1
Fork 0

rustdoc: clean up storage.js

This converts a few functions to more compact versions of
themselves, and moves `RUSTDOC_MOBILE_BREAKPOINT` to main.js where
it's actually used.
This commit is contained in:
Michael Howell 2023-03-23 14:19:50 -07:00
parent 9852980594
commit ba3d6055ad
3 changed files with 14 additions and 30 deletions

View file

@ -4,6 +4,11 @@
"use strict";
// WARNING: RUSTDOC_MOBILE_BREAKPOINT MEDIA QUERY
// If you update this line, then you also need to update the media query with the same
// warning in rustdoc.css
window.RUSTDOC_MOBILE_BREAKPOINT = 700;
// Given a basename (e.g. "storage") and an extension (e.g. ".js"), return a URL
// for a resource under the root-path, with the resource-suffix.
function resourcePath(basename, extension) {