Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Fix isWindow helper for the Electron environment. #247

Merged
merged 2 commits into from
Jul 5, 2018
Merged

Conversation

ma2ciek
Copy link
Contributor

@ma2ciek ma2ciek commented Jul 5, 2018

Suggested merge commit message (convention)

Fix: Fixed isWindow helper for the Electron environment. Closes ckeditor/ckeditor5#879.

@coveralls
Copy link

coveralls commented Jul 5, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 4ced195 on t/ckeditor5/879 into 7467c4e on master.

return Object.prototype.toString.apply( obj ) == '[object Window]';
const stringifiedObject = Object.prototype.toString.apply( obj );

return (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it plain if() statements for better readability 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@oleq oleq merged commit d561151 into master Jul 5, 2018
@oleq oleq deleted the t/ckeditor5/879 branch July 5, 2018 09:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants