summaryrefslogtreecommitdiffstats
path: root/client/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/lib/utils.js')
-rw-r--r--client/lib/utils.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/client/lib/utils.js b/client/lib/utils.js
index 525cfb83..d46d8076 100644
--- a/client/lib/utils.js
+++ b/client/lib/utils.js
@@ -145,6 +145,26 @@ Utils = {
});
},
+ manageCustomUI(){
+ Meteor.call('getCustomUI', (err, data) => {
+ if (err && err.error[0] === 'var-not-exist'){
+ Session.set('customUI', false); // siteId || address server not defined
+ }
+ if (!err){
+ Utils.setCustomUI(data);
+ }
+ });
+ },
+
+ setCustomUI(data){
+ const currentBoard = Boards.findOne(Session.get('currentBoard'));
+ if (currentBoard) {
+ DocHead.setTitle(`${currentBoard.title } - ${ data.productName}`);
+ } else {
+ DocHead.setTitle(`${data.productName}`);
+ }
+ },
+
setMatomo(data){
window._paq = window._paq || [];
window._paq.push(['setDoNotTrack', data.doNotTrack]);