Skip to content

Commit 2ece128

Browse files
committed
Add defaults
1 parent 6233c95 commit 2ece128

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zoom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export default (function () {
1717
}
1818

1919
// Backwards compatibility
20-
const { zoomSelector } = themeConfig;
20+
const { zoomSelector = '.markdown img' } = themeConfig;
2121
const {
2222
imageZoom: {
23-
selector = zoomSelector || '.markdown img',
23+
selector = zoomSelector,
2424
options,
25-
}
25+
} = {},
2626
} = themeConfig;
2727

2828
setTimeout(() => {

0 commit comments

Comments
 (0)