Преглед на файлове

use single-line comments

Gildas преди 6 години
родител
ревизия
613502ae8f

+ 1 - 1
extension/ui/bg/ui-menu.js

@@ -441,7 +441,7 @@ singlefile.extension.ui.bg.menu = (() => {
 				}
 				await Promise.all(promises);
 			} catch (error) {
-				/* ignored */
+				// ignored
 			}
 		}
 	}

+ 2 - 2
lib/browser-polyfill/chrome-browser-polyfill.js

@@ -178,7 +178,7 @@
 										try {
 											sendResponse(response);
 										} catch (error) {
-											/* ignored */
+											// ignored
 										}
 									}
 								});
@@ -197,7 +197,7 @@
 										try {
 											sendResponse(response);
 										} catch (error) {
-											/* ignored */
+											// ignored
 										}
 									}
 								});

+ 2 - 2
lib/frame-tree/content/content-frame-tree.js

@@ -173,7 +173,7 @@ this.singlefile.lib.frameTree.content.frames = this.singlefile.lib.frameTree.con
 			try {
 				sendMessage(frameElement.contentWindow, { method: INIT_REQUEST_MESSAGE, windowId, sessionId, options });
 			} catch (error) {
-				/* ignored */
+				// ignored
 			}
 			setTimeout(() => sendInitResponse({ frames: [{ windowId, processed: true }], sessionId }), TIMEOUT_INIT_REQUEST_MESSAGE);
 		});
@@ -213,7 +213,7 @@ this.singlefile.lib.frameTree.content.frames = this.singlefile.lib.frameTree.con
 			try {
 				sendMessage(frameElement.contentWindow, { method: CLEANUP_REQUEST_MESSAGE, windowId, sessionId });
 			} catch (error) {
-				/* ignored */
+				// ignored
 			}
 		});
 		frameElements.forEach((frameElement, frameIndex) => {

+ 1 - 1
lib/single-file/modules/html-minifier.js

@@ -248,7 +248,7 @@ this.singlefile.lib.modules.htmlMinifier = this.singlefile.lib.modules.htmlMinif
 			try {
 				node.textContent = JSON.stringify(JSON.parse(node.textContent));
 			} catch (error) {
-				/* ignored */
+				// ignored
 			}
 		}
 	}

+ 1 - 1
lib/single-file/single-file-core.js

@@ -1581,7 +1581,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 								resourceElement.setAttribute(attributeName, PREFIX_DATA_URI_IMAGE_SVG + "," + content);
 							}
 						} catch (error) {
-							/* ignored */
+							// ignored
 						}
 					}
 				} else if (resourceURL == options.url) {

+ 1 - 1
lib/single-file/single-file-helper.js

@@ -291,7 +291,7 @@ this.singlefile.lib.helper = this.singlefile.lib.helper || (() => {
 						contents[styleIndex] = Array.from(styleElement.sheet.cssRules).map(cssRule => cssRule.cssText).join("\n");
 					}
 				} catch (error) {
-					/* ignored */
+					// ignored
 				}
 			});
 			return contents;