Skip to content

Commit 12d75c8

Browse files
use processedConfig.platform instead of baked in value (#244)
Asana link: https://app.asana.com/0/1201048563534612/1203086567720768 CC: @RendijsSmukulis @q71114 Description: Instead of setting the platform to 'windows' in the windows-specific code, let clients specify the platform parameters. Other features (e.g. navigator interface) require that anyway and with the current solution, some features can't be enabled.
1 parent 3d8f265 commit 12d75c8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

build/windows/contentScope.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inject/windows.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ function init () {
99
}
1010

1111
contentScopeFeatures.load({
12-
platform: {
13-
name: 'windows'
14-
}
12+
platform: processedConfig.platform
1513
})
1614

1715
contentScopeFeatures.init(processedConfig)

0 commit comments

Comments
 (0)