"use strict";chrome.tabs.query({active:!0,currentWindow:!0},(e=>{e&&e[0]&&e[0].url.toLowerCase().endsWith(".pdf")&&(window.location.href="popup-translate-document.html")})),chrome.runtime.sendMessage({action:"getTabMimeType"},(e=>{e&&"application/pdf"===e.toLowerCase()&&(window.location.href="popup-translate-document.html")}));