Skip to content
Snippets Groups Projects
Commit 0db7fe5d authored by Kevin Jahns's avatar Kevin Jahns
Browse files

added support for static content, added jigsaw puzzle

parent 3a55ca4f
No related branches found
No related tags found
No related merge requests found
Subproject commit 434432a742088e4f53aee0230353c18b5e621211 Subproject commit c44c86054ef1df42d782a67cba1f679207d07ed1
...@@ -560,12 +560,12 @@ module.exports = function (Y/* :any */) { ...@@ -560,12 +560,12 @@ module.exports = function (Y/* :any */) {
} }
* getOperation (id/* :any */)/* :Transaction<any> */ { * getOperation (id/* :any */)/* :Transaction<any> */ {
var o = yield* this.os.find(id) var o = yield* this.os.find(id)
if (o != null || id[0] != '_') { if (o != null || id[0] !== '_') {
return o return o
} else { } else {
// need to generate this operation // need to generate this operation
if (this.store._nextUserId == null) { if (this.store._nextUserId == null) {
var typename= id[1].split('_')[0] var typename = id[1].split('_')[0]
this.store._nextUserId = id this.store._nextUserId = id
yield* Y[typename].createType.call(this) yield* Y[typename].createType.call(this)
delete this.store._nextUserId delete this.store._nextUserId
......
...@@ -73,7 +73,7 @@ type DbOptions = MemoryOptions | IndexedDBOptions ...@@ -73,7 +73,7 @@ type DbOptions = MemoryOptions | IndexedDBOptions
type WebRTCOptions = { type WebRTCOptions = {
name: 'webrtc', name: 'webrtc',
room: string room: string
} }
type WebsocketsClientOptions = { type WebsocketsClientOptions = {
name: 'websockets-client', name: 'websockets-client',
room: string room: string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment