Skip to content

Commit 7e11564

Browse files
committed
Fix for #237
1 parent 6f82287 commit 7e11564

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

graph/MxGenerator.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ const YAML = require("yaml-cfn");
2222
global.window = dom.window;
2323
global.document = window.document;
2424
global.XMLSerializer = window.XMLSerializer;
25-
global.navigator = window.navigator;
26-
25+
Object.defineProperty(global, 'navigator', {
26+
value: window.navigator,
27+
writable: true,
28+
configurable: true
29+
});
2730
const mxgraph = require("mxgraph")({});
2831
const { mxGraph, mxCodec, mxUtils } = mxgraph;
2932

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mhlabs/cfn-diagram",
3-
"version": "1.1.38",
3+
"version": "1.1.39",
44
"description": "CLI tool to visualise CloudFormation, SAM or CDK stacks as draw.io, visjs networks, ascii-art or mermaid",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)