This repository has been archived by the owner. It is now read-only.
when the idle state changes, flush the timer #4186
Closed
+17
−0
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
| @@ -110,7 +110,24 @@ let notificationTimeout = null | ||
| const doAction = (action) => { | ||
| var i, publisher | ||
|
|
||
| /* TBD: handle | ||
mrose17
Author
Member
|
||
| { actionType: "window-set-blocked-by" | ||
| , frameProps: | ||
| { audioPlaybackActive: true | ||
| ... | ||
| } | ||
| , ... | ||
| } | ||
| */ | ||
| if (publisherInfo._internal.verboseP) { | ||
| console.log('\napplication event: ' + JSON.stringify(underscore.pick(action, [ 'actionType', 'key' ]), null, 2)) | ||
| } | ||
| switch (action.actionType) { | ||
| case appConstants.APP_IDLE_STATE_CHANGED: | ||
| visit('NOOP', underscore.now(), null) | ||
| break | ||
|
|
||
| case appConstants.APP_CHANGE_SETTING: | ||
| if (action.key === settings.PAYMENTS_ENABLED) return initialize(action.value) | ||
| if (action.key === settings.PAYMENTS_CONTRIBUTION_AMOUNT) return setPaymentInfo(action.value) | ||
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
what's this– does it pertain to the idle state