Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Fix: Fixes an issue with URI library reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Apr 25, 2016
1 parent be5ba14 commit 8938643
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cookie-parser.js
Expand Up @@ -4,8 +4,10 @@ if (!('window' in this)) {
}
(function(isNode) {
'use strict';
if (isNode) {
var URI = require('urijs');
var URI = isNode ? require('urijs') : window.URI;

if (!URI) {
throw new Error('An URIjs library must be included.');
}
/*******************************************************************************
* Copyright 2016 Pawel Psztyc, The ARC team
Expand Down

0 comments on commit 8938643

Please sign in to comment.