Gildas 5 лет назад
Родитель
Сommit
e4f69e188d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      extension/lib/single-file/browser-polyfill/chrome-browser-polyfill.js

+ 1 - 1
extension/lib/single-file/browser-polyfill/chrome-browser-polyfill.js

@@ -256,6 +256,7 @@
 				})
 				})
 			},
 			},
 			runtime: {
 			runtime: {
+				connectNative: application => nativeAPI.runtime.connectNative(application),
 				getManifest: () => nativeAPI.runtime.getManifest(),
 				getManifest: () => nativeAPI.runtime.getManifest(),
 				onMessage: {
 				onMessage: {
 					addListener: listener => nativeAPI.runtime.onMessage.addListener((message, sender, sendResponse) => {
 					addListener: listener => nativeAPI.runtime.onMessage.addListener((message, sender, sendResponse) => {
@@ -404,7 +405,6 @@
 					addListener: listener => nativeAPI.tabs.onRemoved.addListener(listener),
 					addListener: listener => nativeAPI.tabs.onRemoved.addListener(listener),
 					removeListener: listener => nativeAPI.tabs.onRemoved.removeListener(listener)
 					removeListener: listener => nativeAPI.tabs.onRemoved.removeListener(listener)
 				},
 				},
-				connectNative: application => nativeAPI.runtime.connectNative(application),
 				executeScript: (tabId, details) => new Promise((resolve, reject) => {
 				executeScript: (tabId, details) => new Promise((resolve, reject) => {
 					nativeAPI.tabs.executeScript(tabId, details, () => {
 					nativeAPI.tabs.executeScript(tabId, details, () => {
 						if (nativeAPI.runtime.lastError) {
 						if (nativeAPI.runtime.lastError) {