fix: only set origin and trigger change event if the value actually changed
This commit is contained in:
1 file changed
+4
-2
@@ -17,8 +17,10 @@ class RuntimeSettings {
|
||||
*/
|
||||
get origin() { return this.#origin; }
|
||||
set origin(origin) {
|
||||
this.#origin = origin;
|
||||
this.triggerOriginChanged();
|
||||
if (this.#origin !== origin) {
|
||||
this.#origin = origin;
|
||||
this.triggerOriginChanged();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user