127.0.0.1:8000 watch-together / master src / js / websocket / messages / init-library.js
master

Tree @master (Download .tar.gz)

init-library.js @masterraw · history · blame

const ui = require('../../ui/common');
const video_ui = require('../../ui/video');
const api = require('../../utils/api');

module.exports = function(data, websocket) {
    logger.log(data);
    video_ui.$library.empty();
    data.forEach(function(video) {
        video_ui.create_video_entry(video, websocket);
    });
}