src/LiveDevelopment/main.js
function _setupGoLiveButton() {
        if (!_$btnGoLive) {
            _$btnGoLive = $("#toolbar-go-live");
            _$btnGoLive.click(function onGoLive() {
                _handleGoLiveCommand();
            });
        }
        LiveDevImpl.on("statusChange", function statusChange(event, status, reason) {
            // status starts at -1 (error), so add one when looking up name and style
            // See the comments at the top of LiveDevelopment.js for details on the
            // various status codes.
            _setLabel(_$btnGoLive, null, _status[status + 1].style, _status[status + 1].tooltip);
            _showStatusChangeReason(reason);
            if (config.autoconnect) {
                window.sessionStorage.setItem("live.enabled", status === 3);
            }
        });

        // Initialize tooltip for 'not connected' state
        _setLabel(_$btnGoLive, null, _status[1].style, _status[1].tooltip);
    }
function _setupGoLiveButton() {
        if (!_$btnGoLive) {
            _$btnGoLive = $("#toolbar-go-live");
            _$btnGoLive.click(function onGoLive() {
                _handleGoLiveCommand();
            });
        }
        LiveDevImpl.on("statusChange", function statusChange(event, status, reason) {
            // status starts at -1 (error), so add one when looking up name and style
            // See the comments at the top of LiveDevelopment.js for details on the
            // various status codes.
            _setLabel(_$btnGoLive, null, _status[status + 1].style, _status[status + 1].tooltip);
            _showStatusChangeReason(reason);
            if (config.autoconnect) {
                window.sessionStorage.setItem("live.enabled", status === 3);
            }
        });

        // Initialize tooltip for 'not connected' state
        _setLabel(_$btnGoLive, null, _status[1].style, _status[1].tooltip);
    }
function _setupGoLiveButton ( ) { if ( ! _$btnGoLive ) { _$btnGoLive = $ ( "#toolbar-go-live" ) ; _$btnGoLive . click ( function onGoLive ( ) { _handleGoLiveCommand ( ) ; } ) ; } LiveDevImpl . on ( "statusChange" , function statusChange ( event , status , reason ) { // status starts at -1 (error), so add one when looking up name and style // See the comments at the top of LiveDevelopment.js for details on the // various status codes. _setLabel ( _$btnGoLive , null , _status [ status + 1 ] . style , _status [ status + 1 ] . tooltip ) ; _showStatusChangeReason ( reason ) ; if ( config . autoconnect ) { window . sessionStorage . setItem ( "live.enabled" , status === 3 ) ; } } ) ; // Initialize tooltip for 'not connected' state _setLabel ( _$btnGoLive , null , _status [ 1 ] . style , _status [ 1 ] . tooltip ) ; }
Create the menu item "Go Live"
Create the menu item Go Live