pre-commit formatter

This commit is contained in:
Junyi Hou 2024-04-09 20:03:09 +08:00
parent ddec81c876
commit a1cd164e9a
117 changed files with 153 additions and 170 deletions

View file

@ -61,4 +61,4 @@ document.addEventListener("DOMContentLoaded", function(event) {
// Add copy button to code blocks
let highlightBlocks = document.getElementsByClassName('highlight');
Array.prototype.forEach.call(highlightBlocks, addCopyButton);
}, false);
}, false);

View file

@ -7,7 +7,7 @@
(function(window){
'use strict'
const elementCode = '.mermaid'
const loadMermaid = function(theme) {
window.mermaid.initialize({theme})
@ -26,7 +26,7 @@
}
});
} catch (error) {
reject(error)
reject(error)
}
})
}
@ -46,11 +46,11 @@
}
});
} catch (error) {
reject(error)
reject(error)
}
})
}
}
const init = ()=>{
saveOriginalData()
.catch( console.error )
@ -66,4 +66,4 @@
})
}
window.initMermaid = init
})(window);
})(window);