mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
14 lines
295 B
JavaScript
14 lines
295 B
JavaScript
module.exports = function refreshPageDirective($window) {
|
|
return {
|
|
restrict: 'E',
|
|
replace: true,
|
|
scope: {
|
|
},
|
|
template: require('./refresh-page.jade'),
|
|
link: function(scope) {
|
|
scope.reloadWindow = function() {
|
|
$window.location.reload()
|
|
}
|
|
}
|
|
}
|
|
}
|