MCPcopy Create free account
hub / github.com/BuilderIO/SSDiff / puppeteer_browser_close

Method puppeteer_browser_close

packages/ssdiff/src/index.ts:109–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 }
108 }
109 async puppeteer_browser_close() {
110 try {
111 if (this.browser) {
112 await this.browser.close();
113 // setting this as null so we dont get closed instance the next time
114 this.browser = null;
115 }
116 } catch (e: any) {
117 throw new Error("Error while closing browser: " + e.message);
118 }
119 }
120 getFileName(url: string) {
121 try {
122 const parsedURL = new URL(url);

Callers 2

resultMethod · 0.95
ssdiff.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected