Skip to content

Commit

Permalink
added check for module as well as require for node environment
Browse files Browse the repository at this point in the history
  • Loading branch information
phola committed Nov 22, 2013
1 parent 7a3ca6a commit 02a0510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* vim: set ts=2: */
/*jshint eqnull:true */
/* Spreadsheet Format -- jump to XLSX for the XLSX code */
if(typeof require !== "undefined") SSF = require('ssf');
if(typeof module !== "undefined" && typeof require !== 'undefined') SSF = require('ssf');
var SSF = (function() {
var SSF = {};
String.prototype.reverse=function(){return this.split("").reverse().join("");};
Expand Down

0 comments on commit 02a0510

Please sign in to comment.