Skip to content

Commit

Permalink
session-stores/cookie: Inline _warn() method
Browse files Browse the repository at this point in the history
`warn(...arguments)` unfortunately can't be used like this at the moment since `...arguments` won't be transpiled properly.

see ember-cli/babel-plugin-debug-macros#47
  • Loading branch information
Turbo87 committed Dec 24, 2017
1 parent f161085 commit dd4a464
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions addon/session-stores/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default BaseStore.extend({
if (isNone(value)) {
this.get('_cookies').clear(`${this.get('cookieName')}-expiration_time`);
} else if (value < 90) {
this._warn('The recommended minimum value for `cookieExpirationTime` is 90 seconds. If your value is less than that, the cookie may expire before its expiration time is extended (expiration time is extended every 60 seconds).', false, { id: 'ember-simple-auth.cookieExpirationTime' });
warn('The recommended minimum value for `cookieExpirationTime` is 90 seconds. If your value is less than that, the cookie may expire before its expiration time is extended (expiration time is extended every 60 seconds).', false, { id: 'ember-simple-auth.cookieExpirationTime' });
}
}),

Expand Down Expand Up @@ -293,8 +293,4 @@ export default BaseStore.extend({
this._write(data, expiration);
}
},

_warn() {
warn(...arguments);
}
});

0 comments on commit dd4a464

Please sign in to comment.