From 4de0f86a15a97d152489c142f314e25372ffe57f Mon Sep 17 00:00:00 2001 From: David Walsh Date: Tue, 6 Sep 2022 15:56:08 -0500 Subject: [PATCH] Fix storybook by shimming MV3 method (#15749) --- .storybook/__mocks__/webextension-polyfill.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.storybook/__mocks__/webextension-polyfill.js b/.storybook/__mocks__/webextension-polyfill.js index c8e3dea17..011bdd867 100644 --- a/.storybook/__mocks__/webextension-polyfill.js +++ b/.storybook/__mocks__/webextension-polyfill.js @@ -1,4 +1,8 @@ module.exports = { - runtime: {}, - }; + runtime: { + getManifest: () => { + return { manifest_version: 2 }; + } + }, +}; \ No newline at end of file