提交 4e966530 编写于 作者: N nightwing

disable hi-dpi on chromeOs to avoid blurred text

上级 2ccda8c1
Ace (Ajax.org Cloud9 Editor)
============================
[![Build Status](https://github.com/nightwing/ace/workflows/CI/badge.svg)](https://github.com/nightwing/ace/actions) [![npm](https://img.shields.io/npm/v/ace-builds.svg)](https://www.npmjs.com/package/ace-builds)
[![Build Status](https://github.com/ajaxorg/ace/workflows/CI/badge.svg)](https://github.com/ajaxorg/ace/actions)
[![npm](https://img.shields.io/npm/v/ace-builds.svg)](https://www.npmjs.com/package/ace-builds)
_Note_: The new site at http://ace.c9.io contains all the info below along with an embedding guide and all the other resources you need to get started with Ace.
......
......@@ -267,6 +267,8 @@ exports.HI_DPI = useragent.isWin
? typeof window !== "undefined" && window.devicePixelRatio >= 1.5
: true;
if (useragent.isChromeOS) exports.HI_DPI = false;
if (typeof document !== "undefined") {
// detect CSS transformation support
var div = document.createElement("div");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册