From 147d22ec1d1017131292cb537f9a35de47c9cbb9 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 31 May 2010 00:16:25 -0400 Subject: Fix a syntax error --- lib/clipboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/clipboard.js b/lib/clipboard.js index bf77515..506de03 100644 --- a/lib/clipboard.js +++ b/lib/clipboard.js @@ -42,7 +42,7 @@ var setMethod = exports.setMethod = function setMethod(content, flavor) { flavor != "html") { throw new Error("invalid flavor passed to clipboard.set"); } - flavor = flavor == "plain" ? "text/unicode", "text/html"; + flavor = (flavor == "plain" ? "text/unicode" : "text/html"); var clipboard = Cc["@mozilla.org/widget/clipboard;1"]. getService(Ci.nsIClipboard); -- cgit