Commit 1f84ed4d authored by Mihkel Putrinš's avatar Mihkel Putrinš

test

parent 9d777341
doctype html
html
head
meta(charset='utf-8')
link(rel='stylesheet', type='text/css', href='../style/style.css')
link(rel='icon' type='image/png', href='/favicon-96x96.png' sizes='96x96')
link(rel='shortcut icon', href='/favicon.ico')
body
iframe#login_frame(name='disable-x-frame-options' src='https://entu.keeleressursid.ee/api2/user/auth', width='600', height='600')
var app = require('app')
var op = require('object-path')
var path = require('path')
var fs = require('fs')
var ipc = require('ipc')
var j = require('electron-jade')({pretty: true}, {})
var BrowserWindow = require('browser-window')
var user_url = 'https://entu.keeleressursid.ee/api2/user'
var auth_url = user_url + '/auth'
console.log(auth_url)
app.on('ready', function() {
var home_path = app.getPath('home')
//
mainWindow = new BrowserWindow({ width: 900, height: 600, show: true })
// var title = pjson.name + ' v.' + pjson.version + (pjson.version.indexOf('-') > -1 ? pjson.build : '') + ' | Logi sisse'
var view_path = path.join(__dirname, 'code', 'views', 'test.jade')
mainWindow.webContents.loadUrl('file://' + view_path)
//
// mainWindow.center()
// mainWindow.setTitle(title)
// mainWindow.loadUrl(auth_url)
// mainWindow.webContents.on('did-get-response-details', function(e, s, new_url) {
})
//
// app.on('window-all-closed', function() {
// app.quit()
// })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment