瀏覽代碼

removed unused code

Gildas 7 年之前
父節點
當前提交
c66f04bab8
共有 1 個文件被更改,包括 0 次插入12 次删除
  1. 0 12
      lib/browser-polyfill/custom-browser-polyfill.js

+ 0 - 12
lib/browser-polyfill/custom-browser-polyfill.js

@@ -208,19 +208,7 @@
 						}
 					})
 				),
-				getPlatformInfo: () => new Promise((resolve, reject) =>
-					chrome.runtime.getPlatformInfo(info => {
-						if (chrome.runtime.lastError) {
-							reject(chrome.runtime.lastError);
-						} else {
-							resolve(info);
-						}
-					})
-				),
 				getURL: (path) => chrome.runtime.getURL(path),
-				onInstalled: {
-					addListener: listener => chrome.runtime.onInstalled.addListener(listener)
-				},
 				get lastError() {
 					return chrome.runtime.lastError;
 				}