Merge pull request #213 from MatheusRich/add-support-to-history-custom-settings
Add support to history custom settings
This commit is contained in:
@@ -7,6 +7,13 @@ export default class History extends Extension {
|
|||||||
return 'history'
|
return 'history'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get defaultOptions() {
|
||||||
|
return {
|
||||||
|
depth: '',
|
||||||
|
newGroupDelay: '',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
keys() {
|
keys() {
|
||||||
const isMac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false
|
const isMac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false
|
||||||
const keymap = {
|
const keymap = {
|
||||||
@@ -23,7 +30,10 @@ export default class History extends Extension {
|
|||||||
|
|
||||||
get plugins() {
|
get plugins() {
|
||||||
return [
|
return [
|
||||||
history(),
|
history({
|
||||||
|
depth: this.options.depth,
|
||||||
|
newGroupDelay: this.options.newGroupDelay,
|
||||||
|
}),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user