MCPcopy Create free account
hub / github.com/codecombat/codecombat / getMsg

Method getMsg

app/lib/wsBus.js:96–109  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

94 }
95
96 getMsg (data) {
97 noty({
98 text: data.info.text,
99 layout: 'centerRight',
100 type: 'alert',
101 buttons: [
102 {
103 text: 'Okay', onClick: ($noty) => {
104 $noty.close()
105 window.open(data.info.url, '_blank')
106 }}
107 ]
108 })
109 }
110
111 getSendMessage (data) {
112 const newInfos = _.assign({},

Callers 1

initMethod · 0.95

Calls 1

openMethod · 0.45

Tested by

no test coverage detected