Changes based on review

This commit is contained in:
Ian Stanion
2023-06-20 04:19:30 -04:00
parent 7ea61f9c65
commit 6bb5a82e65
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Title
# chrome.webNavigation
This sample demonstrates using the webNavigation API to send notifications.

View File

@@ -12,11 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
chrome.webNavigation.onCompleted.addListener(() => {
chrome.webNavigation.onCompleted.addListener((details) => {
chrome.notifications.create({
type: 'basic',
iconUrl: 'icon.png',
title: 'page loaded',
message: 'Page has completed loading'
message:
'Completed loading: ' +
details.url +
' at ' +
details.timeStamp +
' milliseconds since the epoch.'
});
});