mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
hairline shim
This commit is contained in:
@ -1,19 +1,6 @@
|
||||
|
||||
(function(document){
|
||||
|
||||
// hairline polyfill
|
||||
if (window.devicePixelRatio >= 2) {
|
||||
var harlineEle = document.createElement('div');
|
||||
harlineEle.style.border = '.5px solid transparent';
|
||||
document.body.appendChild(harlineEle);
|
||||
|
||||
if (harlineEle.offsetHeight == 1) {
|
||||
document.body.classList.add('hairlines');
|
||||
}
|
||||
document.body.removeChild(harlineEle);
|
||||
}
|
||||
|
||||
|
||||
var ionicImport = System.import('ionic/components/app/app');
|
||||
|
||||
function importApp(module) {
|
||||
|
Reference in New Issue
Block a user