Browse Source

Fix injector

Gerald 10 years ago
parent
commit
67e8451538
3 changed files with 5 additions and 4 deletions
  1. 2 1
      src/injected.js
  2. 2 2
      src/options/style.css
  3. 1 1
      src/popup/style.css

+ 2 - 1
src/injected.js

@@ -140,7 +140,7 @@ function getWrapper() {
     };
   });
   // Wrap properties
-  Object.getOwnPropertyNames(window).forEach(function (name) {
+  comm.forEach(comm.props, function (name) {
     if (typeof window[name] === 'function') return;
     Object.defineProperty(wrapper, name, {
       get: function () {
@@ -162,6 +162,7 @@ var comm = {
   // since they may be changed by page scripts
   includes: _.includes,
   forEach: _.forEach,
+  props: Object.getOwnPropertyNames(window),
 
   init: function(srcId, destId) {
     var comm = this;

+ 2 - 2
src/options/style.css

@@ -7,7 +7,7 @@ body {
   height: 100%;
   background: #eee;
   font: menu;
-  font-size: 12px;
+  font-size: 13px;
 }
 h1 {
   font-size: 1.5rem;
@@ -136,7 +136,7 @@ aside img {
 }
 .line {
   display: block;
-  margin: 1em 0;
+  line-height: 2;
 }
 .content {
   height: 100%;

+ 1 - 1
src/popup/style.css

@@ -5,7 +5,7 @@
 }
 body {
   font: menu;
-  font-size: 12px;
+  font-size: 13px;
 }
 .menu {
   max-width: 300px;