aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/clipboard_provider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/clipboard_provider.rs')
-rw-r--r--components/script/clipboard_provider.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/clipboard_provider.rs b/components/script/clipboard_provider.rs
index af67919125b..facdf4aca14 100644
--- a/components/script/clipboard_provider.rs
+++ b/components/script/clipboard_provider.rs
@@ -5,6 +5,7 @@
use msg::constellation_msg::ConstellationChan;
use msg::constellation_msg::Msg as ConstellationMsg;
+use ipc_channel::ipc;
use std::borrow::ToOwned;
use std::sync::mpsc::channel;
@@ -17,7 +18,7 @@ pub trait ClipboardProvider {
impl ClipboardProvider for ConstellationChan {
fn clipboard_contents(&mut self) -> String {
- let (tx, rx) = channel();
+ let (tx, rx) = ipc::channel().unwrap();
self.0.send(ConstellationMsg::GetClipboardContents(tx)).unwrap();
rx.recv().unwrap()
}