f3oall / awesome-notifications

Lightweight JavaScript Notifications Library
https://f3oall.github.io/awesome-notifications/
MIT License
292 stars 40 forks source link

Can't override position option #60

Closed tgice closed 1 year ago

tgice commented 1 year ago

Hi, I may be missing something, but this does not seem to work as expected for me, using the latest awesome-notifications version:

let notifier = new AWN({ position: 'bottom-left' });

notifier.info('test', { position: 'bottom-right' });

It seems that trying to override position does not work. It always goes with whatever the original initialization was (I think even if you don't explicitly define one during instantiation).

I assume this is not working as designed. Any suggestions anyone?

Or anyone have a similar experience?

I tried to do a little troubleshooting by hacking away at src\options.js but didn't get very far due to limited experience with npm & webpack. I ran into a bunch of dependency problems that seem to suggest that some of the dependencies have moved on to differently-named libraries, etc. Plus this is the first time I've tried to recompile a JS project like this I think.

This is happening in Windows 10, in Firefox (Developer) 115.0b8 (64-bit), also on Chrome 114.0.5735.199 (64-bit), using awesome-notifications 3.1.3, installed with npm (version retrieved by npm version within the awesome-notifications directory).

tgice commented 1 year ago

dupe of #55, sorry I missed it. Delete this one if you can.