refactor(click-block): update to config for click-block

update to config for click-block
This commit is contained in:
Dan Bucholtz
2016-06-13 15:28:32 -05:00
parent eb4261c323
commit d7cdba82db
2 changed files with 8 additions and 2 deletions

View File

@@ -183,7 +183,9 @@ function setupDom(window: Window, document: Document, config: Config, platform:
bodyEle.classList.add('enable-hover');
}
if ( config.get('clickBlock') !== false ) {
let original = config.get('clickBlock');
let bool = config.getBoolean('clickBlock');
if ( bool !== false ) {
clickBlock.enable();
}

View File

@@ -11,13 +11,17 @@ Platform.register({
settings: {
mode: 'md',
keyboardHeight: 290,
clickBlock: true
}
});
Platform.setDefault('core');
Platform.register({
name: 'mobile'
name: 'mobile',
settings: {
clickBlock: true
}
});