Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/ext/devtools.js

Issue 29371763: Issue 4795 - Use modern JavaScript syntax (Closed)
Patch Set: Use const as per the new rules Created Jan. 18, 2017, 7:23 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/ext/content.js ('k') | chrome/ext/popup.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ext/devtools.js
diff --git a/chrome/ext/devtools.js b/chrome/ext/devtools.js
index e7093d54e876297e2236eca488773314782b14c8..dbc9738c7254d3afa3fc0d26247d9cd1a41b0909 100644
--- a/chrome/ext/devtools.js
+++ b/chrome/ext/devtools.js
@@ -17,11 +17,10 @@
"use strict";
-(function()
{
- var inspectedTabId = chrome.devtools.inspectedWindow.tabId;
- var port = chrome.runtime.connect({name: "devtools-" + inspectedTabId});
+ let inspectedTabId = chrome.devtools.inspectedWindow.tabId;
+ let port = chrome.runtime.connect({name: "devtools-" + inspectedTabId});
ext.onMessage = port.onMessage;
ext.devtools = chrome.devtools;
-})();
+}
« no previous file with comments | « chrome/ext/content.js ('k') | chrome/ext/popup.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld