mediacube-ui 0.1.318 → 0.1.319
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.319](https://github.com/MediaCubeCo/mcui/compare/v0.1.318...v0.1.319) (2024-10-15)
|
|
6
|
+
|
|
5
7
|
### [0.1.318](https://github.com/MediaCubeCo/mcui/compare/v0.1.317...v0.1.318) (2024-10-09)
|
|
6
8
|
|
|
7
9
|
### [0.1.317](https://github.com/MediaCubeCo/mcui/compare/v0.1.316...v0.1.317) (2024-10-04)
|
package/package.json
CHANGED
|
@@ -362,8 +362,6 @@ export default {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
if (this.activePreset) {
|
|
365
|
-
// Обновляем пресеты из стореджа до того, как записывать новые, чтобы случайно не сбросить
|
|
366
|
-
this.updatePresets()
|
|
367
365
|
const mappedPresets = this.presets[this.name].map(p => {
|
|
368
366
|
if (p.name === this.activePreset.name) {
|
|
369
367
|
return {
|
|
@@ -385,10 +383,12 @@ export default {
|
|
|
385
383
|
this.updatePresets()
|
|
386
384
|
document.documentElement.addEventListener('mousemove', this.onMouseMove)
|
|
387
385
|
document.documentElement.addEventListener('mouseup', this.onMouseUp)
|
|
386
|
+
window.addEventListener('storage', this.updatePresets)
|
|
388
387
|
},
|
|
389
388
|
beforeDestroy() {
|
|
390
389
|
document.documentElement.removeEventListener('mousemove', this.onMouseMove)
|
|
391
390
|
document.documentElement.removeEventListener('mouseup', this.onMouseUp)
|
|
391
|
+
window.removeEventListener('storage', this.updatePresets)
|
|
392
392
|
},
|
|
393
393
|
methods: {
|
|
394
394
|
updatePresets() {
|