chromeworker/chromeproxy/base.js

26 lines
487 B
JavaScript
Raw Normal View History

2020-11-16 11:04:53 +00:00
var Host = "http://localhost:7123"
var GetTaskUrl = `${Host}/task/get`;
var FinishTaskUrl = `${Host}/task/content`;
var ErrorTaskUrl = `${Host}/task/error`;
const TaskIDKey = "chrome_proxy_tid_key";
2020-11-16 11:04:53 +00:00
const BackgroundMsgType = {
2020-11-18 11:49:46 +00:00
NOTWANT: 'notwant',
2020-11-16 11:04:53 +00:00
CONTENT: 'content',
GETTASK: 'gettask',
2020-11-16 11:04:53 +00:00
TIMEOUT: 'timeout',
ERROR: 'error',
2020-11-18 11:49:46 +00:00
OK: 'ok',
};
const InjectMsgType = {
FETCH: 'fetch',
WAIT: 'wait',
ERROR: 'error',
2020-11-18 11:49:46 +00:00
NOTASK: 'notask',
OK: 'ok',
};