Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var clipboard = require('clipboard')
process.stdout.write(clipboard.readText() + '\n')
window.close()
// var clipboard = require('clipboard')
// var image = clipboard.readImage()
// var buffer = image.toPng()
// process.stdout.write(buffer)
// // close window
// window.close()
var ret = globalShortcut.register(process.platform === 'win32' ? 'ctrl+g' : 'cmd+g', function() {
console.log('cmd+g/ctrl+g is pressed');
console.log(clipboard.readText('selection'));
var url = clipboard.readText('selection');
mainWindow.webContents.executeJavaScript("addNewURL('"+url+"');");
});
var ret = globalShortcut.register(process.platform === 'win32' ? 'ctrl+g' : 'cmd+g', function() {
console.log('cmd+g/ctrl+g is pressed');
console.log(clipboard.readText('selection'));
var url = clipboard.readText('selection');
mainWindow.webContents.executeJavaScript("addNewURL('"+url+"');");
});
click: function () {
ipc.emit('add-to-playlist', clipboard.readText().split('\n'))
}
}))
function paste() {
$scope.token = clipboard.readText();
};
paste: waitEditorReady.and(function() {
var text = clipboard.readText();
editor.insert(text);
}),
selectAll: waitEditorReady.and(function() {
click: function() {
pcman.conn.convSend(clipboard.readText());
}
},