Send the channel id to the text analyzer

pull/1/head
yflory 7 years ago
parent 80df45f257
commit 970122b41d

@ -7,6 +7,7 @@ define([
'/common/sframe-common.js', '/common/sframe-common.js',
'/customize/messages.js', '/customize/messages.js',
'/common/common-util.js', '/common/common-util.js',
'/common/common-hash.js',
'/common/common-interface.js', '/common/common-interface.js',
'/common/common-thumbnail.js', '/common/common-thumbnail.js',
'/common/common-feedback.js', '/common/common-feedback.js',
@ -27,6 +28,7 @@ define([
SFCommon, SFCommon,
Messages, Messages,
Util, Util,
Hash,
UI, UI,
Thumb, Thumb,
Feedback, Feedback,
@ -286,7 +288,12 @@ define([
evOnReady.fire(newPad); evOnReady.fire(newPad);
if (AppConfig.textAnalyzer && textContentGetter) { if (AppConfig.textAnalyzer && textContentGetter) {
AppConfig.textAnalyzer(textContentGetter); var privateData = common.getMetadataMgr().getPrivateData();
var channelHashes = privateData.availableHashes;
var hash = channelHashes.editHash || channelHashes.viewHash;
var href = privateData.pathname + '#' + hash;
var channelId = Hash.hrefToHexChannelId(href);
AppConfig.textAnalyzer(textContentGetter, channelId);
} }
UI.removeLoadingScreen(emitResize); UI.removeLoadingScreen(emitResize);

Loading…
Cancel
Save