mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
update to latest gitter (fix for Node)
This commit is contained in:
parent
2fffe39182
commit
cd41a15f1e
1 changed files with 20 additions and 16 deletions
|
|
@ -9,8 +9,13 @@
|
|||
// - authentication and write APIs
|
||||
|
||||
(function() {
|
||||
var global = this
|
||||
, isBrowser = 'document' in global
|
||||
, ie
|
||||
|
||||
if (isBrowser) {
|
||||
// fuck ie
|
||||
var ie = (function() {
|
||||
ie = (function() {
|
||||
var undef
|
||||
, v = 3
|
||||
, div = document.createElement('div')
|
||||
|
|
@ -23,6 +28,7 @@
|
|||
|
||||
return v > 4 ? v : undef
|
||||
}())
|
||||
}
|
||||
|
||||
var inherits
|
||||
if ('create' in Object) {
|
||||
|
|
@ -56,10 +62,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
var global = this
|
||||
, isBrowser = 'document' in global
|
||||
// when running in the browser request is set later
|
||||
, request = isBrowser ? null : require('request')
|
||||
var request = isBrowser ? null : require('request')
|
||||
, Blob, Branch, Commit, Raw, Repo, Tree, User
|
||||
, api
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue