goblin-laboratory 2.0.3 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/widgets/widget/index.js +6 -7
package/package.json
CHANGED
package/widgets/widget/index.js
CHANGED
|
@@ -783,12 +783,9 @@ class Widget extends React.Component {
|
|
|
783
783
|
|
|
784
784
|
cmd(cmd, args) {
|
|
785
785
|
if (!this.registry[cmd]) {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
'font-weight: bold;',
|
|
789
|
-
`Command not impl. ${cmd}`
|
|
786
|
+
throw new Error(
|
|
787
|
+
`Command ${cmd} not implemented or authorized by the zepplin firewall`
|
|
790
788
|
);
|
|
791
|
-
return;
|
|
792
789
|
}
|
|
793
790
|
const state = this.getState().backend;
|
|
794
791
|
|
|
@@ -1155,8 +1152,10 @@ class Widget extends React.Component {
|
|
|
1155
1152
|
|
|
1156
1153
|
setUserSettings(questName, payload) {
|
|
1157
1154
|
const state = this.getState().backend;
|
|
1158
|
-
|
|
1159
|
-
|
|
1155
|
+
const serviceId = state.get(window.labId).get('clientSessionId');
|
|
1156
|
+
payload.id = serviceId;
|
|
1157
|
+
const service = serviceId.split('@', 1)[0];
|
|
1158
|
+
this.cmd(`${service}.${questName}`, payload);
|
|
1160
1159
|
}
|
|
1161
1160
|
|
|
1162
1161
|
static getUserSession(state) {
|