Update kept to work with the new daybed.js#26
Conversation
There was a problem hiding this comment.
It is, yes, but I don't understand what's the matter here?
There was a problem hiding this comment.
Why do you compare the current value then ?
There was a problem hiding this comment.
This says: "If the current session is different from the one of the hash, then set the hash to the new value".
There was a problem hiding this comment.
I mean : what's the problem with overwriting with the same value ?
There was a problem hiding this comment.
Ah, I prefer avoid doing so as I don't know what that triggers for the browser (e.g. if there is no need to, why should we update it?)
There was a problem hiding this comment.
Ok, no problem dude ! Just FYI onhashchange is called only if the value changes :)
There was a problem hiding this comment.
I don't get this : each user will have its own model ?
There was a problem hiding this comment.
Can you explicit pros and cons of this pattern please ? Maybe in Daybed documentation page about permissions ?
( only one I can foresee is about managing permissions, but TBH I find it weird )
|
@n1k0 do you know if the failures are due to the daybed.js changes or aren't related? |
There was a problem hiding this comment.
We might have to choose a way to indent then() consistently...
I think I prefer this way:
return Daybed.startSession(self._options.host, {
token: this._options.token
})
.then(function(session) {
// ...
});
This uses the new daybed.js API and works with kept to share the dashboards, using a hash in the url.