File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,13 +118,13 @@ $rdf.Util = {
118118 */
119119 XMLHTTPFactory : function ( ) {
120120 // Running inside the Tabulator Firefox extension
121- if ( tabulator !== undefined && tabulator . isExtension ) {
121+ if ( typeof tabulator !== ' undefined' && tabulator . isExtension ) {
122122 // Cannot use XMLHttpRequest natively, must request it through SDK
123123 return Components
124124 . classes [ "@mozilla.org/xmlextras/xmlhttprequest;1" ]
125125 . createInstance ( )
126126 . QueryInterface ( Components . interfaces . nsIXMLHttpRequest )
127- } else if ( window !== undefined && 'XMLHttpRequest' in window ) {
127+ } else if ( typeof window !== ' undefined' && 'XMLHttpRequest' in window ) {
128128 // Running inside the browser
129129 var XMLHttpRequest = window . XMLHttpRequest
130130 return new XMLHttpRequest ( )
You can’t perform that action at this time.
0 commit comments