💄 Fix clipboard on Linux.

This commit is contained in:
Cheng Zhao 2014-06-05 15:22:36 +08:00
parent 950704c7e8
commit c575d40d63
2 changed files with 3 additions and 3 deletions

View file

@ -23,9 +23,9 @@ struct Converter<ui::Clipboard::Buffer> {
return false;
if (type == "selection")
*out = ui::Clipboard::BUFFER_STANDARD;
else
*out = ui::Clipboard::BUFFER_SELECTION;
else
*out = ui::Clipboard::BUFFER_STANDARD;
return true;
}
};

View file

@ -1,6 +1,6 @@
if process.platform is 'linux' and process.type is 'renderer'
# On Linux we could not access clipboard in renderer process.
module.exports = require('remote').process.atomBinding 'clipboard'
module.exports = require('remote').require 'clipboard'
else
binding = process.atomBinding 'clipboard'