add BC getTermDocument and a note about deprecation

This commit is contained in:
Guillermo Rauch 2017-09-25 14:46:53 +02:00
parent 19f53550ea
commit 8283ce6825

View file

@ -96,7 +96,14 @@ export default class Term extends PureComponent {
getTermDocument() {
// eslint-disable-next-line no-console
console.error('unimplemented');
console.warn(
'The underlying terminal engine of Hyper no longer ' +
'uses iframes with individual `document` objects for each ' +
'terminal instance. This method call is retained for ' +
"backwards compatibility reasons. It's ok to attach direclty" +
'to the `document` object of the main `window`.'
);
return document;
}
onWindowResize() {