Skip to content

Commit e8bb502

Browse files
committed
comments
1 parent 3777871 commit e8bb502

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

injected/entry-points/chrome.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ function init() {
4949
const reusableMethodName = '_rm' + randomString();
5050
const reusableSecret = '_r' + randomString();
5151
const siteObject = computeLimitedSiteObject();
52-
const initialScript =
53-
contentScopeFeatures +
54-
`
55-
/* global contentScopeFeatures */
56-
contentScopeFeatures.load({
52+
const initialScript = contentScopeFeatures +
53+
`;contentScopeFeatures.load({
5754
platform: {
5855
name: 'extension'
5956
},

injected/scripts/utils/build.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ function loadFeatures(platform, featureNames = platformSupport[platform]) {
125125
};
126126
}
127127

128+
/**
129+
* Create a bundle and allow it to be imported as a string via
130+
* `import bundle from 'ddg:contentScopeFeatures'`
131+
*
132+
* @param {string} platform
133+
*/
128134
function contentFeaturesAsString(platform) {
129135
const pluginId = 'ddg:contentScopeFeatures';
130136
return {

0 commit comments

Comments
 (0)