diff --git a/src/iodine.js b/src/iodine.js index f8705b6..0f32be7 100644 --- a/src/iodine.js +++ b/src/iodine.js @@ -457,4 +457,6 @@ export class Iodine { * Create an instance of the library. * */ -window.Iodine = new Iodine(); +if(typeof window !== undefined) { + window.Iodine = new Iodine(); +}