Skip to content

Commit

Permalink
Merge pull request #63 from N8th8n8el/webworker
Browse files Browse the repository at this point in the history
Workaround for missing window in web worker
  • Loading branch information
maxkfranz authored Dec 7, 2020
2 parents 5efaaaf + 1b69083 commit 6d7cae3
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 6d7cae3

Please sign in to comment.