forked from sheetjs/sheetjs
		
	- `writeFile` support chrome extension (fixes #1051 h/t @atkinsam) - demo refresh
		
			
				
	
	
		
			21 lines
		
	
	
		
			841 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			841 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
 | 
						|
/* from the electron quick-start */
 | 
						|
var electron = require('electron');
 | 
						|
var XLSX = require('xlsx');
 | 
						|
var app = electron.app;
 | 
						|
 | 
						|
var win = null;
 | 
						|
 | 
						|
function createWindow() {
 | 
						|
	if(win) return;
 | 
						|
	win = new electron.BrowserWindow({width:800, height:600});
 | 
						|
	win.loadURL("file://" + __dirname + "/index.html");
 | 
						|
	win.webContents.openDevTools();
 | 
						|
	win.on('closed', function() { win = null; });
 | 
						|
}
 | 
						|
if(app.setAboutPanelOptions) app.setAboutPanelOptions({ applicationName: 'sheetjs-electron', applicationVersion: "XLSX " + XLSX.version, copyright: "(C) 2017-present SheetJS LLC" });
 | 
						|
app.on('open-file', function() { console.log(arguments); });
 | 
						|
app.on('ready', createWindow);
 | 
						|
app.on('activate', createWindow);
 | 
						|
app.on('window-all-closed', function() { if(process.platform !== 'darwin') app.quit(); });
 |