mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-27 13:29:34 +07:00
Changes based on review
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Title
|
||||
# chrome.webNavigation
|
||||
|
||||
This sample demonstrates using the webNavigation API to send notifications.
|
||||
|
||||
@@ -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.'
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user