Add es6-promise for Internet Explorer
Plus it is required by the fetch polyfill, see https://github.com/github/fetch#installation Also see https://github.com/github/fetch/issues/114 This fixes the undefined Promise error in internet explorer 11, due to Promises not being supported in Internet explorer and other browsers. See http://caniuse.com/#feat=promises Bug: Issue 4308 Change-Id: I93df9c89a9a98059292038dffe1655c3f4d503c5
This commit is contained in:
1
lib/BUCK
1
lib/BUCK
@@ -13,6 +13,7 @@ define_license(name = 'clippy')
|
||||
define_license(name = 'codemirror-minified')
|
||||
define_license(name = 'codemirror-original')
|
||||
define_license(name = 'diffy')
|
||||
define_license(name = 'es6-promise')
|
||||
define_license(name = 'fetch')
|
||||
define_license(name = 'h2')
|
||||
define_license(name = 'highlightjs')
|
||||
|
19
lib/LICENSE-es6-promise
Normal file
19
lib/LICENSE-es6-promise
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@@ -99,6 +99,14 @@ bower_component(
|
||||
sha1 = '849ad3ee7c77506548b7b5db603a4e150b9431aa',
|
||||
)
|
||||
|
||||
bower_component(
|
||||
name = 'es6-promise',
|
||||
package = 'stefanpenner/es6-promise',
|
||||
version = '3.2.2',
|
||||
license = 'es6-promise',
|
||||
sha1 = 'de2eda2fdd744994180a0df03d2b5a936fcb1e70',
|
||||
)
|
||||
|
||||
bower_component(
|
||||
name = 'fetch',
|
||||
package = 'fetch',
|
||||
|
@@ -3,6 +3,7 @@ include_defs('//lib/js.defs')
|
||||
bower_components(
|
||||
name = 'polygerrit_components',
|
||||
deps = [
|
||||
'//lib/js:es6-promise',
|
||||
'//lib/js:fetch',
|
||||
'//lib/js:highlightjs',
|
||||
'//lib/js:iron-autogrow-textarea',
|
||||
|
@@ -15,6 +15,7 @@ limitations under the License.
|
||||
-->
|
||||
|
||||
<link rel="import" href="../../../bower_components/polymer/polymer.html">
|
||||
<script src="../../../bower_components/es6-promise/dist/es6-promise.js"></script>
|
||||
<script src="../../../bower_components/fetch/fetch.js"></script>
|
||||
|
||||
<dom-module id="gr-rest-api-interface">
|
||||
|
Reference in New Issue
Block a user