mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-04 09:55:33 +10:00
way better plugin hooks system wip
This commit is contained in:
@@ -84,9 +84,9 @@ async function main() {
|
||||
// Install extension
|
||||
const extension = await installUblockExtension();
|
||||
|
||||
// Export extension metadata for chrome_session to load
|
||||
// Export extension metadata for chrome plugin to load
|
||||
if (extension) {
|
||||
// Write extension info to a cache file that chrome_session can read
|
||||
// Write extension info to a cache file that chrome plugin can read
|
||||
await fs.promises.mkdir(EXTENSIONS_DIR, { recursive: true });
|
||||
await fs.promises.writeFile(
|
||||
cacheFile,
|
||||
|
||||
@@ -197,7 +197,7 @@ describe('ublock plugin', () => {
|
||||
assert.strictEqual(priority, 3);
|
||||
});
|
||||
|
||||
it('should run before chrome_session (priority 20)', () => {
|
||||
it('should run before chrome (priority 20)', () => {
|
||||
const extensionPriority = 3;
|
||||
const chromeSessionPriority = 20;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user