MCPcopy Create free account
hub / github.com/ampproject/amphtml / handleValidatorNotPresent

Function handleValidatorNotPresent

validator/js/chromeextension/worker.js:180–192  ·  view source on GitHub ↗
(tabId)

Source from the content-addressed store, hash-verified

178}
179
180function handleValidatorNotPresent(tabId) {
181 updateTabStatus(tabId, globals.validatorNotPresentIconPrefix,
182 globals.validatorNotPresentTitle, globals.validatorNotPresentBadge,
183 globals.validatorNotPresentBgColor);
184 chrome.tabs.get(tabId, () => {
185 if (!chrome.runtime.lastError) {
186 chrome.action.setPopup({
187 tabId,
188 popup: globals.validatorNotPresentPopup,
189 });
190 }
191 });
192}
193
194/**
195 * Returns whether the url is forbidden for the extension to act on.

Callers 1

validateUrlFromTabFunction · 0.85

Calls 2

updateTabStatusFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected