We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973e95a commit 8f4d9f4Copy full SHA for 8f4d9f4
static/js/theme.js
@@ -216,11 +216,21 @@ function initMermaid( update, attrs ) {
216
attrs = attrs || {
217
'theme': variants.getColorValue( 'MERMAID-theme' ),
218
};
219
+
220
+ var search;
221
+ if( update ){
222
+ search = sessionStorage.getItem( baseUriFull+'search-value' );
223
+ unmark();
224
+ }
225
var is_initialized = ( update ? update_func( attrs ) : init_func( attrs ) );
226
if( is_initialized ){
227
mermaid.init();
228
$(".mermaid svg").svgPanZoom({});
229
}
230
+ if( update && search && search.length ){
231
+ sessionStorage.setItem( baseUriFull+'search-value', search );
232
+ mark();
233
234
235
236
function initSwagger( update, attrs ){
0 commit comments