Skip to content

Commit f0278b5

Browse files
author
Timo Taglieber
committed
Better way to allow including filters.js via script tag and via browserify
1 parent 217b0ae commit f0278b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,6 @@ Filters.erode = function(pixels) {
811811
return output;
812812
};
813813

814-
if (typeof window === 'undefined') {
814+
if (typeof require != 'undefined') {
815815
exports.Filters = Filters;
816816
}

0 commit comments

Comments
 (0)