Skip to content

Commit

Permalink
Merge pull request fabiocaseri#1 from arabold/feature/IE-compatibility
Browse files Browse the repository at this point in the history
Feature/ie compatibility
  • Loading branch information
arabold committed Apr 10, 2015
2 parents afc0f2e + 67f493d commit c06eeca
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion javascripts/dashing.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ Dashing.debugMode = false

source = new EventSource('events')
source.addEventListener 'open', (e) ->
console.log("Connection opened")
if Dashing.debugMode
console.log("Connection opened")

source.addEventListener 'error', (e)->
console.log("Connection error")
Expand Down
3 changes: 2 additions & 1 deletion lib/dashing.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ module.exports.Dashing = function Dashing() {
'Content-Type': 'text/event-stream',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'X-Accel-Buffering': 'no' // Disable buffering for nginx
'X-Accel-Buffering': 'no', // Disable buffering for nginx
'Access-Control-Allow-Origin': '*' //fix XHR issue
});
res.write('\n');
res.write(Array(2049).join(' ') + '\n'); // 2kb padding for IE
Expand Down
2 changes: 1 addition & 1 deletion templates/project/assets/javascripts/application.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#= require_directory .
#= require_tree ../../widgets

console.log("Yeah! The dashboard has started!")
#console.log("Yeah! The dashboard has started!")

Dashing.on 'ready', ->
Dashing.widget_margins ||= [5, 5]
Expand Down
2 changes: 1 addition & 1 deletion templates/project/dashboards/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ html(lang='en')
meta(charset='utf-8')
meta(name="description", content='')
meta(name="viewport", content='width=device-width')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
meta(http-equiv='X-UA-Compatible', content='IE=9,chrome=1')
title
block title
| dashing-js
Expand Down

0 comments on commit c06eeca

Please sign in to comment.