sapui5 に googlemaps を含めようとしています
jQuery.sap.includeScript({
url: "https://maps.googleapis.com/maps/api/js?key=XXXX",
promisify: true
}).then(function() { ... } )
この Promise は、SAP Web-IDE トライアルで実行すると正常に機能しますが、hana クラウド プラットフォームにデプロイすると機能しません。
InterceptService.js:1 Uncaught (in promise) TypeError: u.indexOf is not a function(…) sap.ushell.cloudServices.interceptor.InterceptService._invokeFilters @ InterceptService.js:1
jQuery.sap.includeScript @ InterceptService.js:1
onAfterRendering @ Worklist.controller.js:37
InterceptService.js
このエラーを生成したコード フラグメントは
{if(u.indexOf('/sap/fiori/../../')>0){u=u.replace('/sap/fiori/../../','/');}
私はHCP ポータル サービスを使用して、HCP Fiori Launchpad プラットフォームを作成しています。
これを修正する方法は?私は何を間違えましたか?
どうもありがとう!