Jordan Eldredge
78537accbf
Refactor how we manage window positions
2018-09-29 18:00:20 -07:00
Jordan Eldredge
7b9223544d
Mark serialization methods priviate for now
2018-09-29 18:00:20 -07:00
Jordan Eldredge
ab5586cf60
Begin tracking window size
2018-09-29 18:00:20 -07:00
Jordan Eldredge
952484518f
Use namespaced Utils for webamplazy
2018-09-29 18:00:20 -07:00
Jordan Eldredge
464d42405f
Add initial approach of recovering from bad window positions
2018-09-29 18:00:19 -07:00
Jordan Eldredge
38f032b2c7
Don't center windows when restoring from serialized state
2018-09-29 17:58:46 -07:00
Jordan Eldredge
72875f3367
Make hotkeys a function not a singleton class that has side effects when you construct it
...
This also sets us up for being able to unbind things
2018-09-29 17:58:46 -07:00
Jordan Eldredge
d1b43d55ca
Serialize state to indexdb
2018-09-29 17:58:46 -07:00
Jordan Eldredge
289a4f8866
Stub out a destroy method with some notes
2018-09-27 07:43:53 -07:00
Jordan Eldredge
343686f745
Don't leak a file into into the global DOM
...
Fixes #662
This never should have been in the Webamp class. It's only used for testing/screenshots.
2018-09-27 07:24:41 -07:00
Jordan Eldredge
3bd6e931c6
Make onTrackDidChange public again.
...
I realized that onTrackDidChange was already a public API, and that while I'm not sure if the new approach is 100% correct, it's surely better than the old one.
2018-09-25 22:31:05 -07:00
Jordan Eldredge
5f7948c011
Add media session integration ( #646 )
2018-09-25 22:13:43 -07:00
Jordan Eldredge
ff06c96de2
Provide a way to prevent closing Webamp ( #655 )
...
* Provide a way to prevent closing Webamp
Fixes #653
* Fix typos for onWillClose in usage and types
2018-09-20 06:19:28 -07:00
Jordan Eldredge
b84049344d
Remove module.exports
...
This was originally removed in https://github.com/captbaritone/webamp/pull/648
And accidentally re-added in https://github.com/captbaritone/webamp/pull/639 due to a bad rebase.
2018-09-02 09:18:16 -07:00
Jordan Eldredge
1bdb7d6345
Inject lazy dependencies ( #639 )
...
Still TODO Find a nice way to expose WebampLazy as:
```JavaScript
import WebampLazy from 'webamp/lazy';
```
2018-09-02 09:01:51 -07:00