Send the channel id to the text analyzer

pull/1/head
yflory 2018-02-01 11:08:04 +01:00
parent 80df45f257
commit 970122b41d
1 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,7 @@ define([
'/common/sframe-common.js',
'/customize/messages.js',
'/common/common-util.js',
'/common/common-hash.js',
'/common/common-interface.js',
'/common/common-thumbnail.js',
'/common/common-feedback.js',
@ -27,6 +28,7 @@ define([
SFCommon,
Messages,
Util,
Hash,
UI,
Thumb,
Feedback,
@ -286,7 +288,12 @@ define([
evOnReady.fire(newPad);
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);