Skip to content

Commit

Permalink
Fix for #237
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Apr 19, 2024
1 parent 6f82287 commit 7e11564
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions graph/MxGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ const YAML = require("yaml-cfn");
global.window = dom.window;
global.document = window.document;
global.XMLSerializer = window.XMLSerializer;
global.navigator = window.navigator;

Object.defineProperty(global, 'navigator', {
value: window.navigator,
writable: true,
configurable: true
});
const mxgraph = require("mxgraph")({});
const { mxGraph, mxCodec, mxUtils } = mxgraph;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mhlabs/cfn-diagram",
"version": "1.1.38",
"version": "1.1.39",
"description": "CLI tool to visualise CloudFormation, SAM or CDK stacks as draw.io, visjs networks, ascii-art or mermaid",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7e11564

Please sign in to comment.