Skip to content

Commit

Permalink
SSL fix provided by @brettveenstra which allows SSL support with usin…
Browse files Browse the repository at this point in the history
…g the JS <script> file in the <head> tags.
  • Loading branch information
stephenlb committed Oct 8, 2012
1 parent 1073d49 commit 80f07a6
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions app-showcase/content-commander/m-commander.html
Expand Up @@ -191,8 +191,8 @@ <h3>
$("#demo_info_button").click( toggleDemoInfo );
$("#notifications_button").click( toggleNotifications );

$("#demo_info_button").touchUp( toggleDemoInfo );
$("#notifications_button").touchUp( toggleNotifications );
//$("#demo_info_button").touchUp( toggleDemoInfo );
//$("#notifications_button").touchUp( toggleNotifications );
</script>

</div><!-- /page #main -->
Expand Down Expand Up @@ -275,7 +275,7 @@ <h1>Uh-oh.</h1>

<!-- PUBNUB -->

<div pub-key="pub-550ff6a3-aa50-466c-a2c7-55a6c3fa3345" sub-key="sub-f3307e99-6a4a-11e1-870f-affeca838b29" ssl="off" origin="pubsub.pubnub.com" id="pubnub"></div>
<div pub-key="pub-7dbb570c-16fa-4bb7-8478-b632bb510472" sub-key="sub-c9ce8494-d8b6-11e0-9367-bbbbf064f5b3" ssl="off" origin="pubsub.pubnub.com" id="pubnub"></div>
<script src="http://cdn.pubnub.com/pubnub-3.1.min.js"></script>
<script>(function(){

Expand Down
4 changes: 2 additions & 2 deletions app-showcase/content-commander/package.json
@@ -1,6 +1,6 @@
{
"description": "a little demo",
"version": "1.3.0",
"version": "1.3.0-4",
"dependencies": {
"union": "0.1.7",
"flatiron": "0.1.11",
Expand All @@ -16,4 +16,4 @@
"engines": {
"node": "v0.6.x"
}
}
}
2 changes: 1 addition & 1 deletion javascript/3.1/pubnub-3.1.js
Expand Up @@ -872,7 +872,7 @@ var PDIV = $('pubnub') || {}
PUBNUB = CREATE_PUBNUB({
'publish_key' : attr( PDIV, 'pub-key' ),
'subscribe_key' : attr( PDIV, 'sub-key' ),
'ssl' : attr( PDIV, 'ssl' ) == 'on',
'ssl' : attr( PDIV, 'ssl' ) == 'on' || !document.location.href.indexOf('https'),
'origin' : attr( PDIV, 'origin' )
});

Expand Down
2 changes: 1 addition & 1 deletion javascript/3.2/pubnub-3.2.js
Expand Up @@ -926,7 +926,7 @@ var PDIV = $('pubnub') || {}
PUBNUB = CREATE_PUBNUB({
'publish_key' : attr( PDIV, 'pub-key' ),
'subscribe_key' : attr( PDIV, 'sub-key' ),
'ssl' : attr( PDIV, 'ssl' ) == 'on',
'ssl' : attr( PDIV, 'ssl' ) == 'on' || !document.location.href.indexOf('https'),
'origin' : attr( PDIV, 'origin' ),
'uuid' : attr( PDIV, 'uuid' )
});
Expand Down
2 changes: 1 addition & 1 deletion javascript/3.3/pubnub-3.3.js
Expand Up @@ -971,7 +971,7 @@ var PDIV = $('pubnub') || {}
PUBNUB = CREATE_PUBNUB({
'publish_key' : attr( PDIV, 'pub-key' ),
'subscribe_key' : attr( PDIV, 'sub-key' ),
'ssl' : attr( PDIV, 'ssl' ) == 'on',
'ssl' : attr( PDIV, 'ssl' ) == 'on' || !document.location.href.indexOf('https'),
'origin' : attr( PDIV, 'origin' ),
'uuid' : attr( PDIV, 'uuid' )
});
Expand Down
6 changes: 4 additions & 2 deletions javascript/3.3/pubnub-3.3.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion javascript/pubnub-3.3.js
Expand Up @@ -971,7 +971,7 @@ var PDIV = $('pubnub') || {}
PUBNUB = CREATE_PUBNUB({
'publish_key' : attr( PDIV, 'pub-key' ),
'subscribe_key' : attr( PDIV, 'sub-key' ),
'ssl' : attr( PDIV, 'ssl' ) == 'on',
'ssl' : attr( PDIV, 'ssl' ) == 'on' || !document.location.href.indexOf('https'),
'origin' : attr( PDIV, 'origin' ),
'uuid' : attr( PDIV, 'uuid' )
});
Expand Down
6 changes: 4 additions & 2 deletions javascript/pubnub-3.3.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80f07a6

Please sign in to comment.