forked from sheetjs/sheetjs
added check for module as well as require for node environment
see PR : https://github.com/SheetJS/js-xls/pull/23
This commit is contained in:
parent
7a3ca6a1ab
commit
02a0510c7b
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