electron-webview-schedule

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![npm download][download-image]][download-url]

Usage no npm install needed!

<script type="module">
  import electronWebviewSchedule from 'https://cdn.skypack.dev/electron-webview-schedule';
</script>

README

electron-webview-schedule

NPM version build status Test coverage npm download

Webview scheduling management module supporting asynchronous queue for Electron.


Installment

$ npm i electron-webview-schedule --save

Usage

Import in the renderer process.

import moment from 'moment';
import PromiseQueue from 'electron-webview-schedule/lib/promise-queue';
import WebviewSchedule from 'electron-webview-schedule/lib/webview-schedule';

const webviewSchedule = new WebviewSchedule({
  container: document.body,
  queue: new PromiseQueue(1),
  moment,
  webviewOptions: {
    eventsStack: [],
    attributes: {
    },
  },
});

webviewSchedule.send('channel-foo', args);

Development

$ npm i
$ npm run dev

Contributors


xudafeng


sriting

This project follows the git-contributor spec, auto updated at Tue Dec 07 2021 14:23:52 GMT+0800.

License

The MIT License (MIT)