From 83eb3047168aa36051de409eadcad5a542e65b6e Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 1 Feb 2018 11:16:34 +0100 Subject: [PATCH] lint compliance --- www/common/sframe-app-framework.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index 181c45a94..9c9c1b786 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -287,23 +287,20 @@ define([ if (!readOnly) { onLocal(); } evOnReady.fire(newPad); + UI.removeLoadingScreen(emitResize); + + var privateDat = cpNfInner.metadataMgr.getPrivateData(); + var hash = privateDat.availableHashes.editHash || + privateDat.availableHashes.viewHash; + var href = privateDat.pathname + '#' + hash; if (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); - - var privateDat = cpNfInner.metadataMgr.getPrivateData(); if (options.thumbnail && privateDat.thumbnails) { - var hash = privateDat.availableHashes.editHash || - privateDat.availableHashes.viewHash; if (hash) { - options.thumbnail.href = privateDat.pathname + '#' + hash; + options.thumbnail.href = href; options.thumbnail.getContent = function () { if (!cpNfInner.chainpad) { return; } return cpNfInner.chainpad.getUserDoc();