Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b21d68b

Browse filesBrowse files
committed
removed leave required on page change for non-ssl non-jsonp.
1 parent c9ddee0 commit b21d68b
Copy full SHA for b21d68b

File tree

Expand file treeCollapse file tree

21 files changed

+176
-150
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

21 files changed

+176
-150
lines changed
Open diff view settings
Collapse file

‎VERSION‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.4
1+
3.5.41
Collapse file

‎core/pubnub-common.js‎

Copy file name to clipboardExpand all lines: core/pubnub-common.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ function PN_API(setup) {
258258
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
259259

260260
// No Leave Patch (Prevent Blocking Leave if Desired)
261-
if (NOLEAVE) return;
261+
if (NOLEAVE) return;
262+
if (!SSL) return;
263+
if (jsonp == '0') return;
262264

263265
if (jsonp != '0') data['callback'] = jsonp;
264266

Collapse file

‎modern/pubnub.js‎

Copy file name to clipboardExpand all lines: modern/pubnub.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -955,7 +957,7 @@ THE SOFTWARE.
955957
* UTIL LOCALS
956958
*/
957959
var NOW = 1
958-
, PNSDK = 'PubNub-JS-' + 'Modern' + '/' + '3.5.4'
960+
, PNSDK = 'PubNub-JS-' + 'Modern' + '/' + '3.5.41'
959961
, XHRTME = 310000;
960962

961963

Collapse file

‎modern/pubnub.min.js‎

Copy file name to clipboardExpand all lines: modern/pubnub.min.js
+15-15Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎node.js/pubnub.js‎

Copy file name to clipboardExpand all lines: node.js/pubnub.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -960,7 +962,7 @@ var NOW = 1
960962
, XHRTME = 310000
961963
, DEF_TIMEOUT = 10000
962964
, SECOND = 1000
963-
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.5.4'
965+
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.5.41'
964966
, crypto = require('crypto')
965967
, XORIGN = 1;
966968

Collapse file

‎phonegap/pubnub.js‎

Copy file name to clipboardExpand all lines: phonegap/pubnub.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -955,7 +957,7 @@ THE SOFTWARE.
955957
* UTIL LOCALS
956958
*/
957959
var NOW = 1
958-
, PNSDK = 'PubNub-JS-' + 'Phonegap' + '/' + '3.5.4'
960+
, PNSDK = 'PubNub-JS-' + 'Phonegap' + '/' + '3.5.41'
959961
, XHRTME = 310000;
960962

961963

Collapse file

‎phonegap/pubnub.min.js‎

Copy file name to clipboardExpand all lines: phonegap/pubnub.min.js
+15-15Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎sencha/pubnub.js‎

Copy file name to clipboardExpand all lines: sencha/pubnub.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -955,7 +957,7 @@ THE SOFTWARE.
955957
* UTIL LOCALS
956958
*/
957959
var NOW = 1
958-
, PNSDK = 'PubNub-JS-' + 'Sencha' + '/' + '3.5.4'
960+
, PNSDK = 'PubNub-JS-' + 'Sencha' + '/' + '3.5.41'
959961
, XHRTME = 310000;
960962

961963

Collapse file

‎sencha/pubnub.min.js‎

Copy file name to clipboardExpand all lines: sencha/pubnub.min.js
+15-15Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎smart-tv/pubnub.js‎

Copy file name to clipboardExpand all lines: smart-tv/pubnub.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
/* =-====================================================================-= */
33
/* =-====================================================================-= */
44
/* =-========================= JSON =============================-= */
@@ -409,7 +409,9 @@ function PN_API(setup) {
409409
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
410410

411411
// No Leave Patch (Prevent Blocking Leave if Desired)
412-
if (NOLEAVE) return;
412+
if (NOLEAVE) return;
413+
if (!SSL) return;
414+
if (jsonp == '0') return;
413415

414416
if (jsonp != '0') data['callback'] = jsonp;
415417

@@ -1083,7 +1085,7 @@ window['PUBNUB'] || (function() {
10831085
*/
10841086

10851087
var ASYNC = 'async'
1086-
, PNSDK = 'PubNub-JS-' + 'SmartTV' + '/' + '3.5.4';
1088+
, PNSDK = 'PubNub-JS-' + 'SmartTV' + '/' + '3.5.41';
10871089

10881090
/**
10891091
* CONSOLE COMPATIBILITY

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.