Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Change Playdar.unload to onbeforeunload instead of onunload. Also ret…

…urn query_params after adding the auth_token
  • Loading branch information...
commit 3564f734945eda2f2d6e9e05d75014a96839152c 1 parent d486f44
James Wheare jwheare authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  static/playdar.js
3  static/playdar.js
@@ -470,6 +470,7 @@ Playdar.Client.prototype = {
470 470 if (this.auth_token) {
471 471 query_params.auth = this.auth_token;
472 472 }
  473 + return query_params;
473 474 },
474 475
475 476 // turn a source id into a stream url
@@ -1219,7 +1220,7 @@ Playdar.Util = {
1219 1220 null_callback: function () {}
1220 1221 };
1221 1222
1222   -Playdar.Util.addEvent(window, 'unload', Playdar.unload);
  1223 +Playdar.Util.addEvent(window, 'beforeunload', Playdar.unload);
1223 1224
1224 1225 /*!
1225 1226 * Sizzle CSS Selector Engine - v1.0

0 comments on commit 3564f73

Please sign in to comment.
Something went wrong with that request. Please try again.