```define( 'SampleExtension.Sample' , [] , fu...
# suitecommerce
l
Copy code
define(
	'SampleExtension.Sample'
,   []
,   function ()

{
	'use strict';
	return  {
		mountToApp: function mountToApp (container)
		{
			var Cart = container.getComponent('Cart')
			Cart.cancelableOn('afterAddLine', function (){
				console.log("afterAddLine");
			});
			Cart.cancelableOn('beforeAddLine', function (){
				console.log("beforeAddLine");
			});
		}
	};
});
s
The code looks fine. Are you sure the extension is being loaded? For example, put a log message in the
mountToApp
outside of any callback
l
logs works outside mountToApp, I guess I am on shopping application and which is not Secure(HTTPS) I think that is causing an issue..