|
@@ -131,24 +131,24 @@
|
|
|
flexible.rem = win.rem = rem;
|
|
|
}
|
|
|
|
|
|
- win.addEventListener(
|
|
|
- 'resize',
|
|
|
- function() {
|
|
|
- clearTimeout(tid);
|
|
|
- tid = setTimeout(refreshRem, 300);
|
|
|
- },
|
|
|
- false,
|
|
|
- );
|
|
|
- win.addEventListener(
|
|
|
- 'pageshow',
|
|
|
- function(e) {
|
|
|
- if (e.persisted) {
|
|
|
- clearTimeout(tid);
|
|
|
- tid = setTimeout(refreshRem, 300);
|
|
|
- }
|
|
|
- },
|
|
|
- false,
|
|
|
- );
|
|
|
+ // win.addEventListener(
|
|
|
+ // 'resize',
|
|
|
+ // function() {
|
|
|
+ // clearTimeout(tid);
|
|
|
+ // tid = setTimeout(refreshRem, 300);
|
|
|
+ // },
|
|
|
+ // false,
|
|
|
+ // );
|
|
|
+ // win.addEventListener(
|
|
|
+ // 'pageshow',
|
|
|
+ // function(e) {
|
|
|
+ // if (e.persisted) {
|
|
|
+ // clearTimeout(tid);
|
|
|
+ // tid = setTimeout(refreshRem, 300);
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // false,
|
|
|
+ // );
|
|
|
|
|
|
if (doc.readyState === 'complete') {
|
|
|
doc.body.style.fontSize = 12 * dpr + 'px';
|