MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / setCustomProperty

Method setCustomProperty

src/scripts/logging/submodules/event.ts:134–143  ·  view source on GitHub ↗
(key: PropertyName.Custom, value: string | number | boolean)

Source from the content-addressed store, hash-verified

132 }
133
134 public setCustomProperty(key: PropertyName.Custom, value: string | number | boolean): void {
135 if (this.isReservedPropertyName(key)) {
136 throw new Error("Tried to overwrite key '" + PropertyName.Custom[key] + "' with value of " + JSON.stringify(value));
137 }
138
139 if (!this._properties) {
140 this._properties = {};
141 }
142 this._properties[PropertyName.Custom[key]] = value;
143 }
144
145 /**
146 * Calling this multiple times in a row will result in restart of the timer

Callers 15

logPdfClipOptionsMethod · 0.95
logPdfByteMetadataMethod · 0.95
logRegionClipMethod · 0.95
logAugmentationClipMethod · 0.95
userInfoUpdateCbMethod · 0.95
startRegionClipMethod · 0.95
getCompressedDataUrlMethod · 0.95
onClosePageNavButtonMethod · 0.95
closeClipperMethod · 0.95

Calls 1

Tested by

no test coverage detected