Skip to content

Commit

Permalink
[1.6.13] entryjs 확장블록 라이브러리 변경에 따른 코드 임시수정
Browse files Browse the repository at this point in the history
  • Loading branch information
extracold1209 committed Oct 25, 2018
1 parent 1ed8732 commit 01e7e0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/renderer/entry_offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@
<script type='text/javascript'>
Entry.isOffline = true;
Entry.painterBaseUrl = './bower_components/literallycanvas/lib/img';

//TODO 2018년 11월 배포시 삭제 필수
['translate', 'festival'].forEach(expansion => {
Entry.EXPANSION_BLOCK[expansion].api = 'https://playentry.org' + Entry.EXPANSION_BLOCK[expansion].api;
});
Entry.EXPANSION_BLOCK.weather.baseUrl = 'https://playentry.org' + Entry.EXPANSION_BLOCK.weather.baseUrl;

var isPracticalCourse = localStorage.getItem('isPracticalCourse');
const Modal = require('./src/modal/app.js').default;
</script>
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/require.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const filbert = parser;
import util from './src/sources/util';
const Util = util;

//TODO 2018년 11월 배포시 삭제 필수
$.get = function(url, data, callback, type){
if ( $.isFunction(data) ){
type = type || callback,
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/src/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ EntryStatic.getName = function(str, type) {
}
};

EntryStatic.baseUrl = sharedObject && `${sharedObject.hostProtocol}//${sharedObject.hostURI}`;

// for server node js code
if (typeof exports == 'object') {
exports.blockInfo = EntryStatic.blockInfo;
Expand Down

0 comments on commit 01e7e0b

Please sign in to comment.