Skip to content

Commit

Permalink
don't have browser use module
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 23, 2025
1 parent a8e0e7a commit fcec297
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/DrawHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ caDrawHelper.prototype.clearCanvas = function(canvas){
var DrawHelper = new caDrawHelper();
//OpenSeadragon.DrawHelper = DrawHelper;

if (typeof window == 'undefined') {
module.exports = caDrawHelper;
}


module.exports = caDrawHelper;

0 comments on commit fcec297

Please sign in to comment.