Skip to content

Commit bc740c3

Browse files
committed
Add support for latest Electron 1.x
1 parent 93466f7 commit bc740c3

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

spiral.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ var buffer = {};
88
var t = i18n.t; // The mother of all shortcuts
99
var canvas = rpRequire('canvas');
1010
var dataURI = require('datauri'); // Save rasters as a single URI
11-
var remote = require('remote');
12-
var mainWindow = remote.getCurrentWindow();
11+
var mainWindow = require('electron').remote.getCurrentWindow();
1312

1413
mode.pageInitReady = function () {
1514
// Initialize the paper.js canvas with wrapper margin and other settings.
@@ -23,7 +22,7 @@ mode.pageInitReady = function () {
2322
bottom: 40
2423
}
2524
});
26-
}
25+
};
2726

2827

2928
// Trigger load init resize only after paper has called this function.

spiral.ps.js

-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ paper.resetSpiral = function(callback) {
9292

9393
// Automatically paint the single spiral path.
9494
paper.autoPaintSpiral = function(){
95-
// Wait for all these commands to stream in before starting to actually
96-
// run them. This ensures a smooth start.
97-
robopaint.pauseTillEmpty(true);
98-
9995
mode.run([
10096
'wash',
10197
['media', 'color0'],

0 commit comments

Comments
 (0)