Skip to content

Commit fb1eda3

Browse files
authored
Fix typo in Click to Load script (#231)
When adding logic to determine the correct tracker blocking rule action based on Click to Load entity, I made a small typo. Instead of `entity`, I attempted to access `this.entity` which didn't exist.
1 parent f4d64bd commit fb1eda3

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3555,7 +3555,7 @@
35553555
}
35563556

35573557
function runLogin (entity) {
3558-
const action = this.entity === 'Youtube' ? 'block-ctl-yt' : 'block-ctl-fb';
3558+
const action = entity === 'Youtube' ? 'block-ctl-yt' : 'block-ctl-fb';
35593559
unblockClickToLoadContent({ entity, action, isLogin: true });
35603560
originalWindowDispatchEvent(
35613561
createCustomEvent('ddg-ctp-run-login', {

build/android/contentScope.js

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

build/chrome-mv3/inject.js

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

build/chrome/inject.js

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

build/firefox/inject.js

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

build/integration/contentScope.js

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

build/windows/contentScope.js

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

src/features/click-to-play.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ function unblockClickToLoadContent (message) {
15961596
}
15971597

15981598
function runLogin (entity) {
1599-
const action = this.entity === 'Youtube' ? 'block-ctl-yt' : 'block-ctl-fb'
1599+
const action = entity === 'Youtube' ? 'block-ctl-yt' : 'block-ctl-fb'
16001600
unblockClickToLoadContent({ entity, action, isLogin: true })
16011601
originalWindowDispatchEvent(
16021602
createCustomEvent('ddg-ctp-run-login', {

0 commit comments

Comments
 (0)