Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permissions #112

Open
oliverkoehler opened this issue May 21, 2023 · 5 comments
Open

Add permissions #112

oliverkoehler opened this issue May 21, 2023 · 5 comments

Comments

@oliverkoehler
Copy link

Hey,
i tried to add new permissions to the manifest:

...
"version": "1.0.10",
"manifest_version": 3,
"permissions": [
  "storage"
],

Any suggestions why chrome doesnt recognize?

@samrum
Copy link
Owner

samrum commented May 23, 2023

What problem are you running into?

@oliverkoehler
Copy link
Author

oliverkoehler commented May 23, 2023 via email

@andrei-g-git
Copy link

I'm having a related problem, I think, when I add in string permissions to manifest.ts, in the sharedManifest object, I get an incompatible type error from within the getManifest function --- Type 'string' is not assignable to type 'ManifestPermissions'

Looking at the ManifestV3 object, the permissions property is locked for some reason, it's type is never[]

Is there a proper way to add permissions without manually typing them into the dist folder manifest?

@samrum
Copy link
Owner

samrum commented Jun 9, 2023

@andrei-g-git that's an unrelated issue. Set the type of sharedManifest to Partial<chrome.runtime.ManifestBase>. Fixed in [email protected]

@samrum
Copy link
Owner

samrum commented Jun 9, 2023

@oliverkoehler I'm not able to reproduce any issue with the storage permission. How are you attempting to use the storage API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants