Closed amio closed 6 years ago
Oops, my mistake, there is an option object >.<
There is an options object. But most people using this library will never use the options.
So I think it's better to provide an instance of ChromePromise as default and if someone wants to use the constructor, then it can be imported from 'chrome-promise/constructor'.
I can make the changes on the weekend.
Fixed in 797b0af2e4c4094b11175180de29685dba2971bb (v3.0.0)
Since there's no option for
new ChromePromise()
, how about let user directly usewindow.ChromePromise
orimport cp from 'chrome-promise'
?