Index: remoting/webapp/build-webapp.py |
diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py |
index 7f4a62c98b45f209919f1fdfa94c15f84d508421..01ffbe9fca65f0e4ba88169f11fd3e162376dd72 100755 |
--- a/remoting/webapp/build-webapp.py |
+++ b/remoting/webapp/build-webapp.py |
@@ -189,6 +189,11 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, |
findAndReplace(os.path.join(destination, 'plugin_settings.js'), |
'HOST_PLUGIN_MIMETYPE', hostPluginMimeType) |
+ # Set client plugin type. |
+ client_plugin = 'pnacl' if webapp_type == 'v2_pnacl' else 'native' |
+ findAndReplace(os.path.join(destination, 'plugin_settings.js'), |
+ "'CLIENT_PLUGIN_TYPE'", "'" + client_plugin + "'") |
+ |
# Allow host names for google services/apis to be overriden via env vars. |
oauth2AccountsHost = os.environ.get( |
'OAUTH2_ACCOUNTS_HOST', 'https://accounts.google.com') |