Skip to content

Commit

Permalink
Merge pull request #3 from r0p0s3c/master
Browse files Browse the repository at this point in the history
Support running out of site subdirectory
  • Loading branch information
dr-dimitru committed Mar 14, 2016
2 parents 2a50812 + 19ad5e6 commit 8466f80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cookies.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class __cookies
###
send: ->
if @runOnServer
HTTP.get '/___cookie___/set', () -> return
HTTP.get (__meteor_runtime_config__.ROOT_URL_PATH_PREFIX or '') + '/___cookie___/set', () -> return
else
throw new Meteor.Error '400', 'Can\'t send cookies on server when `runOnServer` is false.'

Expand Down Expand Up @@ -333,4 +333,4 @@ class Cookies extends __cookies
self.handler and self.handler _cookie
next()

Cookies.isLoadedOnServer = false if Meteor.isServer
Cookies.isLoadedOnServer = false if Meteor.isServer
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'ostrio:cookies',
version: '2.0.1',
version: '2.0.2',
summary: 'Isomorphic boilerplate Server and Client cookie functions',
git: 'https://github.com/VeliovGroup/Meteor-Cookies',
documentation: 'README.md'
Expand Down

0 comments on commit 8466f80

Please sign in to comment.