add polyfills for es6-promise and fetch for those browsers that don't support them
closes #2
This commit is contained in:
@ -114,6 +114,14 @@ setup = (user) ->
|
||||
lastCookie = currentCookie
|
||||
, 100
|
||||
|
||||
wiki.getScript '/security/modernizr-custom.js', () ->
|
||||
console.log 'modernizr loaded'
|
||||
unless Modernizr.promises
|
||||
require('es6-promise').polyfill()
|
||||
|
||||
unless Modernizr.fetch
|
||||
require('whatwg-fetch')
|
||||
|
||||
wiki.getScript '/security/winchan.js'
|
||||
if (!$("link[href='/security/style.css']").length)
|
||||
$('<link rel="stylesheet" href="/security/style.css">').appendTo("head")
|
||||
|
@ -9,13 +9,15 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"coffee-script": "1.10",
|
||||
"es6-promise": "^3.2.1",
|
||||
"lodash": "^4.13.1",
|
||||
"passport": "^0.3.2",
|
||||
"passport-github": "^1.1.0",
|
||||
"passport-google-oauth20": "^1.0.0",
|
||||
"passport-twitter": "^1.0.4",
|
||||
"persona-pass": "^0.2.1",
|
||||
"qs": "^6.2.0"
|
||||
"qs": "^6.2.0",
|
||||
"whatwg-fetch": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"coffeeify": "*",
|
||||
|
Reference in New Issue
Block a user