Navigation

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    The notification icon is displayed as the default icon.

    Opera add-ons
    1
    1
    321
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      I'm trying to understand how extensions works. Hence, I'm trying to create a test extension. My icon16.png does not appear at notification bar. It only shows default opera icon. How to do that? Thanks.
      code:

      chrome.storage.sync.set({'total': newTotal}, function(){
      
      			if (amount && newTotal >= budget.limit) {
      
      			var notifOptions = {
      				type: 'basic',
      				iconUrl: 'icon16.png',
      				title: 'Limit reached!',
      				message: "looks like you've reached your limit."
      			};
      			chrome.notifications.create('limitNotif', notifOptions);
      		}
      	});
      

      Screenshot from 2019-06-03 11-21-34.png

      Reply Quote 0
        1 Reply Last reply
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-