Skip to content

Commit

Permalink
get around a bug where oauth.js assumes a browser is running the code
Browse files Browse the repository at this point in the history
  • Loading branch information
spullara committed Nov 25, 2009
1 parent ca3350e commit 1b3e97b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netflix/netflix.catalog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1b3e97b

Please sign in to comment.