Merge pull request #3176 from yutotnh/fix-typo

Fix typo
This commit is contained in:
Ashish Jain
2022-06-28 19:01:35 +02:00
committed by GitHub
68 changed files with 124 additions and 141 deletions

View File

@@ -272,7 +272,7 @@ const render = function (id, _txt, cb, container) {
// let d3Iframe;
let root = select('body');
// In regular execurtion the container will be the div with a mermaid class
// In regular execution the container will be the div with a mermaid class
if (typeof container !== 'undefined') {
if (cnf.securityLevel === 'sandbox') {
// IF we are in sandboxed mode, we do everyting mermaid related
@@ -317,7 +317,7 @@ const render = function (id, _txt, cb, container) {
} else {
// No container was provided
// If there is an existsing element with the id, we remove it
// this likley a previously rendered diagram
// this likely a previously rendered diagram
const existingSvg = document.getElementById(id);
if (existingSvg) {
existingSvg.remove();
@@ -743,7 +743,7 @@ function initialize(options) {
}
}
// Set default options
configApi.saveConfigFromInitilize(options);
configApi.saveConfigFromInitialize(options);
if (options && options.theme && theme[options.theme]) {
// Todo merge with user options