Tag: programming
-
How to fix “Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received”
To solve errors related to the asynchronous response In the previous post, I learned how to implement send/receive messages asynchronously in the browser extension. In this post I introduce a sample code of sending a message and returning values asynchronously by showing how to fix the errors related to the asynchronous response. This background.js has…
-
How to send a message to another part of the browser extension – asynchronously
Erros I got when send a message asynchronously I got some errors related to messaging from a content script to another part of the extension for example a background JavaScript. These are the errors I got, I found I need to understand how to send a message to another part of the browser extension asynchronously.…
-
Display Browsing History nicely in Edge Extension – CSS –
I’m going to develop exactly same popup dialog as Microsoft Edge “History” popup. Today, I would like to organize the browsing list to display it nicely. That means This image below is the current popup dialog. I will improve it in this post. 1. Setup to use CSS file 2. Add Style for the List…
-
How to Inject a Content Script from an Extension to Browser tab (Part1)
I learned how to create the simplest Edge Extension with following the tutorial. It doesn’t have JavaScript file to do something. Tutorial part 1: Display an image in a pop-up In this post, I will create the extension with a JavaScript.I will follow the tutorial below. Through this tutorial, I understand the basic concept of…
-
How to Create and Install Extension to Edge
In the previous post, I introduced how to create the manifest.json from installing the Visual Studio Code to required key for the manifest file. I’m following the instructions below. Tutorial part 1: Display an image in a pop-upPrevious post: How to Create manifest.json for Edge Extensions In this post, I will introduce how to create…
-
How to Add Custom Actions before Install in Windows Installer
With Visual Studio Installer Project, you can add Custom Actions, which are custom scripts that can be executed during the installation process. Windows Installer – Using Custom Actions However, in the Custom Actions View of Visual Studio Installer Project, there are only four predefined stages: Install, Commit, Rollback and Uninstall. It’s not very clear which…