Commit 95de9a84 95de9a84d000e61a863264ab23b5e4ee174cc362 by Vincent Peybernes

#12 The angular module is not define when it use under Electron app

1 parent be823fdb
Pipeline #49 for 95de9a84 passed in 2 minutes 20 seconds
## [unreleased]
* Fix Angular export on Electron app
## [0.1.0] - 2016-12-10
* Fix browser import
......@@ -7,5 +10,6 @@
* Add readme and licence
* Add export management
[unreleased]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...master
[0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0
[0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc
\ No newline at end of file
......
......@@ -8,11 +8,12 @@
if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition();
//Browser export
if(typeof window != 'undefined'){
if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
if(typeof requirejs != 'undefined') return define(definition());
window.RelativePlacement = definition();
}
// Angular export
if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition);
})(function(){
/**
......