Skip to content

Commit

Permalink
Merge branch 'QA'
Browse files Browse the repository at this point in the history
  • Loading branch information
kmathmann committed May 9, 2017
2 parents 4c7cfb9 + 72528bf commit 462f089
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/json-chayns-call/calls/set-object-for-key.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { removeKeyForTapp, setKeyForTapp } from '../../utils/chayns-storage';

export function setObjectForKey(req, res) {
export default function setObjectForKey(req, res) {
const value = req.value;
const tappId = chaynsInfo.getGlobalData().AppInfo.TappSelected.Id;

Expand Down
2 changes: 1 addition & 1 deletion src/json-chayns-call/calls/update-chayns-id.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { refreshChaynsIdIcons } from '../../json-native-calls/calls/index';

export function updateChaynsId(req, res) {
export default function updateChaynsId(req, res) {
refreshChaynsIdIcons();
}
12 changes: 12 additions & 0 deletions src/tapp/communication-functions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import jsonCalls from '../json-chayns-call/json-calls.js';
import * as jsonCallHelper from '../json-chayns-call/json-call-helper';
import { answerJsonCall } from '../tapp/custom-tapp-communication';
import logger from 'chayns-logger';
import ConsoleLogger from '../utils/console-logger';

const consoleLogger = new ConsoleLogger('communication-functions.js (chaynscall)');

export function chaynscall(param, srcIframe) {
let value;
Expand Down Expand Up @@ -46,6 +50,14 @@ export function chaynscall(param, srcIframe) {
jsonCalls[action](req, res);
} else {
jsonCallHelper.throwEvent(action, 3, `chaynsCall ${action} doesn't exist`, value, srcIframe);

consoleLogger.warn(`Requested chaynsCall with Action ${action} is not supported`);
logger.info({
message: 'Requested chaynsCall with Action {customNumber} is not supported',
customNumber: action,
fileName: 'communication-functions.js',
section: 'chaynscall',
});
}
}

Expand Down

0 comments on commit 462f089

Please sign in to comment.