MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / initializeSmartValues

Method initializeSmartValues

src/scripts/clipperUI/clipper.tsx:523–534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521 }
522
523 private initializeSmartValues() {
524 this.state.currentMode.subscribe((newMode: ClipMode) => {
525 switch (newMode) {
526 case ClipMode.FullPage:
527 case ClipMode.Augmentation:
528 Clipper.getInjectCommunicator().callRemoteFunction(Constants.FunctionKeys.updatePageInfoIfUrlChanged);
529 break;
530 default:
531 break;
532 }
533 }, { callOnSubscribe: false });
534 }
535
536 private initializeNumSuccessfulClips(): void {
537 Clipper.getStoredValue(ClipperStorageKeys.numSuccessfulClips, (numClipsAsStr: string) => {

Callers 1

constructorMethod · 0.95

Calls 3

subscribeMethod · 0.80
callRemoteFunctionMethod · 0.80
getInjectCommunicatorMethod · 0.80

Tested by

no test coverage detected