forked from sheetjs/sheetjs
Merge pull request #39 from phola/master
added check for module as well as require for node environment
This commit is contained in:
commit
78360cf1da
2
xlsx.js
2
xlsx.js
@ -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("");};
|
||||
|
Loading…
Reference in New Issue
Block a user