JavaScript syncronicity: Combining onAuthRequired Listener and native massaging

前端 未结 1 437
旧时难觅i
旧时难觅i 2020-12-22 11:55

I have this problem ... and I\'ve been trying to get a username and password pair passed to background.js of my extension. The process goes as follows:

  1. A Crede
1条回答
  •  清酒与你
    2020-12-22 12:51

    The solution to the problem was to use callbacks.

    I thought I would have to deal with Promises, which I did a lot of work on ... only to find there was a much easier answer.

    Much easier.

    0 讨论(0)
提交回复
热议问题