File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 214214 * Location of the `bower_components` folder.
215215 * It should be a path from server's root path including bower_components.
216216 */
217- bowerLocation : String ,
217+ bowerLocation : {
218+ type : String ,
219+ observer : '_updateRedirectUrl'
220+ } ,
218221 /**
219222 * Hides the URL editor from the view.
220223 * Note that the editor is still in the DOM. This property just hiddes
228231 } ,
229232
230233 ready : function ( ) {
231- this . _setRedirectUrl ( ) ;
234+ if ( ! this . redirectUrl ) {
235+ this . _updateRedirectUrl ( this . bowerLocation ) ;
236+ }
232237 this . _initExtensionBanner ( ) ;
233238 } ,
234239 // Sets OAuth 2 redirect URL for the authorization panel
235- _setRedirectUrl : function ( ) {
240+ _updateRedirectUrl : function ( location ) {
236241 var a = document . createElement ( 'a' ) ;
237- var location = this . bowerLocation ;
238242 if ( ! location ) {
239243 location = 'bower_components/' ;
240244 }
You can’t perform that action at this time.
0 commit comments