浏览代码

fix: element selector layout is broken in some websites (#682)

Ahmad Kholid 3 年之前
父节点
当前提交
9c933f032f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/content/utils.js

+ 5 - 0
src/content/utils.js

@@ -5,6 +5,11 @@ export function elementSelectorInstance() {
 
   if (rootElementExist) {
     rootElementExist.style.display = 'block';
+    document.documentElement.style.setProperty(
+      'font-size',
+      '16px',
+      'important'
+    );
 
     return true;
   }