Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit d0574d2

Browse files
author
Paul Gray
committed
Don't use api key if one isn't defined
1 parent 55fd171 commit d0574d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export var app = angular.module('et', [
2525
]);
2626

2727
app.config(['$httpProvider', function($httpProvider) {
28-
if(window.lo_api_config){
28+
if(window.lo_api_config && window.lo_api_config.apiKey){
2929
$httpProvider.defaults.headers.common['Authorization'] = `Bearer ${window.lo_api_config.apiKey}`;
3030
}
3131
}]);

0 commit comments

Comments
 (0)