Rollup merge of #118986 - GuillaumeGomez:simplify-js-inline, r=notriddle
Simplify JS code a little bit As mentioned, JS code can be simplified a little bit. r? ``@notriddle``
This commit is contained in:
commit
b377babd2b
@ -328,8 +328,8 @@ pub(super) fn write_shared(
|
||||
v.push_str(
|
||||
r#"\
|
||||
]'));
|
||||
if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)};
|
||||
if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex};
|
||||
if (typeof exports !== 'undefined') exports.searchIndex = searchIndex;
|
||||
else if (window.initSearch) window.initSearch(searchIndex);
|
||||
"#,
|
||||
);
|
||||
Ok(v.into_bytes())
|
||||
|
Loading…
x
Reference in New Issue
Block a user