Send the channel id to the text analyzer
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user