You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Main function to send page data to Home Assistant
33
+
* Initialize popup by loading context menu items
33
34
*/
34
-
asyncfunctionsendToHA(){
35
-
updateStatus('Sending...');
36
-
hideButton();
37
-
35
+
asyncfunctioninitPopup(){
38
36
try{
39
37
consttab=awaitgetActiveTab();
40
38
if(!tab){
41
39
thrownewError('No active tab found');
42
40
}
43
41
42
+
// Check for restricted pages
43
+
if(ExtensionUtils.isRestrictedPage(tab.url)){
44
+
updateStatus('This extension cannot send data from browser internal pages (settings, extensions, etc.). Please navigate to a regular website and try again.');
45
+
showButton();
46
+
return;
47
+
}
48
+
49
+
// Load context menu items and display selection UI
0 commit comments