A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Include Textile code in bundle

+5 -16
+3 -1
src/Javascript/Brain/common.js
··· 49 49 return data => { 50 50 app.ports.fromAlien.send({ 51 51 tag: event.tag, 52 - data: (opts && opts.parseJSON && typeof data === "string") ? JSON.parse(data) : data, 52 + data: (opts && opts.parseJSON && typeof data === "string") 53 + ? JSON.parse(data) 54 + : (data || null), 53 55 error: null 54 56 }) 55 57 }
+2 -15
src/Javascript/Brain/user.js
··· 7 7 8 8 import * as crypto from "../crypto" 9 9 import { identity } from "../common" 10 + import Textile from "../textile" 10 11 11 12 import { SECRET_KEY_LOCATION, decryptIfNeeded, encryptWithSecretKey } from "./common" 12 13 import { fromCache, isLocalHost, removeCache, reportError } from "./common" ··· 91 92 const session = bl0ckst4ck() 92 93 93 94 session.generateAndStoreTransitKey().then(transitKey => { 94 - const dir = location.pathname.replace("workers/brain.js", "") 95 + const dir = location.pathname.replace("brain.js", "") 95 96 96 97 return session.makeAuthRequest( 97 98 transitKey, ··· 341 342 // Textile 342 343 // ------- 343 344 344 - let tt 345 - 346 - 347 - function textile() { 348 - if (!tt) { 349 - importScripts("../textile.js") 350 - tt = true 351 - } 352 - } 353 - 354 345 355 346 ports.requestTextile = app => event => { 356 347 const apiOrigin = event.data.apiOrigin 357 - 358 - textile() 359 348 360 349 Textile.ensureThread 361 350 (apiOrigin) ··· 371 360 ports.toTextile = app => event => { 372 361 const apiOrigin = event.data.apiOrigin 373 362 const json = JSON.stringify(event.data.data) 374 - 375 - textile() 376 363 377 364 Textile.ensureThread 378 365 (apiOrigin)