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

[Bug] #170

Open
Sperhak323 opened this issue Jan 16, 2023 · 1 comment
Open

[Bug] #170

Sperhak323 opened this issue Jan 16, 2023 · 1 comment
Assignees
Labels
Type: Bug Something isn't working as expected.

Comments

@Sperhak323
Copy link

Hi, I search bug. I cannot minifier javascript document.
Line const data = await chrome.storage.sync.get("options"); make error
specialy: "await chrome"
when i write "awaitchrome" document can minifier, but code not work :) sure.

Sorry for my english.

All code here :
`// In-page cache of the user's options
const options = {};
const optionsForm = document.getElementById("optionsForm");

// Immediately persist options changes
optionsForm.switch.addEventListener("change", (event) => {
options.debug = event.target.checked;
chrome.storage.sync.set({ options });
});

// Initialize the form with the user's option settings
const data = await chrome.storage.sync.get("options");
Object.assign(options, data.options);
optionsForm.switch.checked = Boolean(options.debug);`

@Sperhak323 Sperhak323 added the Type: Bug Something isn't working as expected. label Jan 16, 2023
@welcome
Copy link

welcome bot commented Jan 16, 2023

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

2 participants