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] Get stuck when calling GM.setValue the second time with different value. #2058

Closed
cesaryuan opened this issue Mar 30, 2024 · 1 comment
Labels

Comments

@cesaryuan
Copy link

Sequence of actions:

  1. install the following scripts
// ==UserScript==
// @name        Bug for GM.setValue
// @namespace   Violentmonkey Scripts
// @match       https://violentmonkey.github.io/api/gm/
// @grant       GM.setValue
// @version     1.0
// @author      -
// @description 2024/3/30 16:42:40
// ==/UserScript==

(async () => {
  console.log('test1');

  await GM.setValue('test', '1')

  await GM.setValue('test', '2')

  console.log('test2');

  await GM.setValue('test', '3')

  console.log('test3');
})()
  1. open https://violentmonkey.github.io/api/gm/
  2. console will only log test1 without test2 and test3.

Problem: only log test1

Expected result: log test1 and test2 and test3

Devtools console contents:

Environment:

  • OS: Windows
  • Browser: Chrome 123.0.6312.86
  • Violentmonkey Version: 2.18.0
@cesaryuan cesaryuan added the bug label Mar 30, 2024
@cesaryuan cesaryuan changed the title [BUG] The second time you call GM.setValue with different value, it will get stuck. [BUG] Get stuck when calling GM.setValue the second time with different value. Mar 30, 2024
@tophf
Copy link
Member

tophf commented Mar 30, 2024

I can't reproduce the problem. I guess it might be #2028 which is fixed in Violentmonkey beta.

@tophf tophf closed this as completed Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants