Add no-op function for Gerrit.installGwt in PolyGerrit plugins

Change-Id: I99c67914e45c7be799631de6ddb283f8a0938eec
This commit is contained in:
Andrew Bonventre
2016-05-08 20:23:13 -04:00
parent e46824375b
commit 4560b8ee0c

View File

@@ -14,6 +14,10 @@
(function(window) {
'use strict';
// GWT JSNI uses $wnd to refer to window.
// http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html
window.$wnd = window;
function Plugin(opt_url) {
this._url = new URL(opt_url);
if (this._url.pathname.indexOf('/plugins') !== 0) {
@@ -64,5 +68,9 @@
callback(new Plugin(src));
};
Gerrit.installGwt = function() {
// NOOP since PolyGerrit doesnt support GWT plugins.
};
window.Gerrit = Gerrit;
})(window);