]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update support for Meteor 1.2 17693/head
authorRichard Lai <it.rclai@gmail.com>
Thu, 24 Sep 2015 13:06:17 +0000 (09:06 -0400)
committerRichard Lai <it.rclai@gmail.com>
Thu, 24 Sep 2015 13:06:17 +0000 (09:06 -0400)
package.js

index 9b98df9518c1c843a7ceca908d1a56fb21ad134d..ae1c8dbad7347ea2b30d2711a6f7b63e7a022561 100644 (file)
@@ -13,13 +13,18 @@ Package.describe({
 Package.onUse(function (api) {
   api.versionsFrom('METEOR@1.0');
   api.use('jquery', 'client');
-  api.addFiles([
+  var assets = [
     'dist/fonts/glyphicons-halflings-regular.eot',
     'dist/fonts/glyphicons-halflings-regular.svg',
     'dist/fonts/glyphicons-halflings-regular.ttf',
     'dist/fonts/glyphicons-halflings-regular.woff',
     'dist/fonts/glyphicons-halflings-regular.woff2'
-  ], 'client', { isAsset: true });
+  ];
+  if (api.addAssets) {
+    api.addAssets(assets, 'client');
+  } else {
+    api.addFiles(assets, 'client', { isAsset: true });
+  }
   api.addFiles([
     'dist/css/bootstrap.css',
     'dist/js/bootstrap.js'