Skip to content

Commit

Permalink
Workaround for missing window in web worker
Browse files Browse the repository at this point in the history
  • Loading branch information
N8th8n8el committed Nov 23, 2020
1 parent 5efaaaf commit 1b69083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cytoscape-dagre.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
exports["cytoscapeDagre"] = factory(require("dagre"));
else
root["cytoscapeDagre"] = factory(root["dagre"]);
})(window, function(__WEBPACK_EXTERNAL_MODULE__4__) {
})(this, function(__WEBPACK_EXTERNAL_MODULE__4__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ let config = {
path: path.join( __dirname ),
filename: pkg.name + '.js',
library: camelcase( pkg.name ),
libraryTarget: 'umd'
libraryTarget: 'umd',
globalObject: "this"
},
module: {
rules: [
Expand Down

0 comments on commit 1b69083

Please sign in to comment.