Permalink
Browse files

get around a bug where oauth.js assumes a browser is running the code

  • Loading branch information...
1 parent ca3350e commit 1b3e97bf54db8056c90e59f8977ad39f87e7df75 @spullara committed Nov 25, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 netflix/netflix.catalog.xml
@@ -20,6 +20,8 @@
<key id="cks" type="xs:string" paramType="variable" required="true" />
</inputs>
<execute><![CDATA[
+// Get around a bug where oauth.js assumes a browser is running the code
+var document = {getElementsByTagName:function(value) { return null; }};
// Include the OAuth libraries from oauth.net
y.include("http://oauth.googlecode.com/svn/code/javascript/oauth.js");
y.include("http://oauth.googlecode.com/svn/code/javascript/sha1.js");

0 comments on commit 1b3e97b

Please sign in to comment.