Sha256: bbbe9c12cbc8ec9af63f9b00312bcd21ff54960b85b749b581329d226581255c

Contents?: true

Size: 1 KB

Versions: 12

Compression:

Stored size: 1 KB

Contents

(function () {

    var React = require('react'),
        injectTapEventPlugin = require("react-tap-event-plugin"),
        Main = require('./components/main'), // Our custom react component
        NUTELLA = require('nutella_lib');

    //Needed for React Developer Tools
    window.React = React;
    injectTapEventPlugin();

    var query_parameters = NUTELLA.parseURLParameters();
    if(query_parameters.broker) {
        window.nutella = NUTELLA.init(query_parameters.broker, query_parameters.app_id, query_parameters.run_id, 'roomcast-channel-creator', function(connected) {
            if(connected) {
                window.ReactMain = React.render( <Main /> , document.body);
                ReactMain.imagesQueue = 0;
            }
        });
    } else {
        window.nutella = NUTELLA.init('52.1.142.215', 't1', 'default', 'roomcast-channel-creator', function(connected) {
            window.ReactMain = React.render( <Main /> , document.body);
            ReactMain.imagesQueue = 0;
        });
    }

})();

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nutella_framework-0.7.3 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.7.2 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.7.1 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.7.0 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.21 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.20 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.19 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.18 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.17 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.16 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.15 framework_components/roomcast-channel-creator/src/app/app.js
nutella_framework-0.6.13 framework_components/roomcast-channel-creator/src/app/app.js