fregante/webext-detect

Add expect/assert methods

オープン

#5 opened on 2021/06/27

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (2 件のフォーク)github user discovery
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (50 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

function backgroundStuff() {
	expectBackground();
	// -> Error: Expected background context, found content script

	chrome.alarms.set(…);
}

I'm not sure about the API because this would only accept one type at a time and no negatives, e.g. "expect not background"

コントリビューターガイド