diff --git a/src/entry_ext.js b/src/entry_ext.js
index 6a9d9f57..7c657a94 100644
--- a/src/entry_ext.js
+++ b/src/entry_ext.js
@@ -21,5 +21,6 @@
script.async = true;
script.crossOrigin = 'anonymous';
script.src = `${SERVER}/${FLAVOR}.js?_=${Date.now()}`;
+ document.body.classList.add('ffz-ext');
document.head.appendChild(script);
})();
diff --git a/src/modules/main_menu/components/home-page.vue b/src/modules/main_menu/components/home-page.vue
index c167a786..3f2f6d1d 100644
--- a/src/modules/main_menu/components/home-page.vue
+++ b/src/modules/main_menu/components/home-page.vue
@@ -189,14 +189,16 @@
-
+
+
+
@@ -207,6 +209,7 @@
import HOME_MD from '../home.md';
import {createElement as e} from 'utilities/dom';
+import { EXTENSION } from 'utilities/constants';
export default {
props: ['item', 'context'],
@@ -217,7 +220,8 @@ export default {
theme: '',
addons: null,
new_addons: null,
- unseen: this.item.getUnseen()
+ unseen: this.item.getUnseen(),
+ not_extension: ! EXTENSION
}
},
@@ -241,13 +245,14 @@ export default {
mounted() {
let el;
- document.head.appendChild(el = e('script', {
- id: 'ffz--twitter-widget-script',
- async: true,
- charset: 'utf-8',
- src: 'https://platform.twitter.com/widgets.js',
- onLoad: () => el.remove()
- }));
+ if ( this.not_extension )
+ document.head.appendChild(el = e('script', {
+ id: 'ffz--twitter-widget-script',
+ async: true,
+ charset: 'utf-8',
+ src: 'https://platform.twitter.com/widgets.js',
+ onLoad: () => el.remove()
+ }));
},
methods: {