Skip to content

chrome.extension not exported to content script #187

@powellnorma

Description

@powellnorma

This causes e.g. the "Reddit Enhancement Suite" to not work (can't access chrome.extension.inIncognitoContext):

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'inIncognitoContext')
    at isPrivateBrowsing (foreground.entry.js:15198:29)
    at module35.shouldRun (foreground.entry.js:40259:31)
    at isRunning (foreground.entry.js:47228:177)
    at _addModuleBodyClasses (foreground.entry.js:47321:12)
    at foreground.entry.js:47350:53

To Reproduce
Steps to reproduce the behavior:

  1. Install https://chromewebstore.google.com/detail/reddit-enhancement-suite/kbmfpngjjgdllneeigpgjifpgocmfgmb
  2. Go to https://old.reddit.com
  3. Open dev-tools

Information:

  • App Version: 0.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions